I also would recommend loading all of your workspaces and saving the result
as a new workspace. However, you should be aware of the potential for data
loss if workspaces contain like-named objects.
For example, if your active workspace includes an object "x" and you load
another workspace with an
Guojun,
Otherwise you can simply load the .RData files one over the other from the
main menu of the R window. It works also for the .Rhistory files.
Enjoy your codes,
Gian
On 10 February 2012 21:56, Peter Solymos wrote:
> Guojun,
>
> Make lists of them with this function:
>
> fun <- functi
Guojun,
Make lists of them with this function:
fun <- function(file) {
x <- new.env()
load(file, x)
as.list(x)
}
HTH,
Peter
On Fri, Feb 10, 2012 at 1:52 PM, lgj200306 wrote:
> Hi, everyone!
> I have several R workspaces, with each contains many files. I want to combine
> these
Hi, everyone!
I have several R workspaces, with each contains many files. I want to combine
these workspaces into one. Which command should I use to achieve my target?
Thank you very much and best wishes for you!
Guojun Lin
Feb. 10th, 2012
[[alternative HTML version deleted]]