Skip to content
Prev 257625 / 398503 Next

passing a vector of variable names to the ... pairlist function argument

On 21.04.2011 16:03, Jessica Myers wrote:
For the cbind case, I'd omit cbind and ask R to:

   sapply(xs, get)

or

   apply(matrix(xs), 1, get)

or with cbind():

   do.call("cbind", lapply(xs, get))

the latter can be generalized for other function calls, of course.

Best,
Uwe Ligges