[R] passing object names in a vector to save?
tlumley at u.washington.edu
Fri Feb 20 19:54:15 CET 2004
On Fri, 20 Feb 2004, wolski wrote:
> for(x in nam)
> #reads the objects and assigns the names.
> I knew that it fails. (It saves object x containing a char.)
There are at least two possibilities. The specialised one is to look at
the help for save() and notice that you can specify a vector of names of
objects with the list= argument
The more general one is to use substitute() or do.call(). For example
More information about the R-help