Skip to content
Prev 44607 / 398526 Next

passing object names in a vector to save?

On Fri, 20 Feb 2004, wolski wrote:

            
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
  save(list=x,file=nnam)

The more general one is to use substitute() or do.call(). For example
  do.call("save",list(as.name(x),file=nnam))

	-thomas