[R] selectively load some objects from old workspace

2006-10-18 Thread Weiwei Shi
Dear Listers: I have a question on loading objects from workspace: suppose I have two workspaces for two approaches. My old workspace has some objects I need for the new workspace but I don't want to load the whole old workspace and remove most of the old objects and get what I want. Is there an

Re: [R] selectively load some objects from old workspace

2006-10-18 Thread Gabor Grothendieck
Either 1. in your old workspace create a separate file using save that contains only the variables you want to transfer (see ?save) and then load that or 2. load the whole thing into an environment e - new.env() load(myspace.rda, e) and then copy out all the variables you want and delete e