Vote count:
0
I'm trying to understand how to work with R expressions. If I have a simple expression such as exp <- quote(f(x=12)), then exp[[1]] returns the function, f, and exp[[2]] returns the argument, 12, but I don't know how to get at the argument name, x. Similarly, I don't know how to create the expression f(x=12) programmatically (without using quote).
asked 3 mins ago
R: How to get and set named arguments in an expression
Aucun commentaire:
Enregistrer un commentaire