I *think* you want:
ZC <- do.call(rbind,lapply(a,get))
But why do you make "a" a *list* of names rather than a vector of names?
Generally one uses lists to hold "complicated" structures.
A sequence of character scalars is best stored in an atomic vector.
cheers,
Rolf Turner
P. S. Thank
1. It should be:
a<-as.list(ls(pattern= "^Z."))
to get "Z" at the beginning and 1 further character.
2. Use do.call() instead of call(). The latter does not evaluate the call;
the former does.
3. But most important, the "args" argument of do.call() must be a list of
names, not character strin
Hello R users,
I am trying to run the command rbind gathering the name of tables to bind
from a list argument.
Unfortunately I am not able to obtain it.
I would appreciate any suggestions. Below is a reproducible example with
the problem.
Thanks
Matteo
3 matches
Mail list logo