Re: [R] Saving objects in RData file in different name

2018-07-29 Thread Ivan Calandra
Hi! In those cases, I use R.utils::saveObject() and loadObject(). You would have to save each object separately though: saveObject(x1, file="file.Rbin") y <- loadObject(file="file.Rbin") HTH Ivan -- Dr. Ivan Calandra TraCEr, laboratory for Traceology and Controlled Experiments MONREPOS Archaeo

Re: [R] Saving objects in RData file in different name

2018-07-28 Thread Jeremie Juste
Christofer Bogaso writes: Hello In case you have conflicting data issue when you load data, you can also do it the other way around. Indeed you never know when a possible conflict might occur in the future. The following line load the data in a new environment e first then get it back to your

Re: [R] Saving objects in RData file in different name

2018-07-28 Thread K. Elo
Hi! Maybe not the most elegant solution, but a workaround is to have a function: > save2<-function(y, ...) { save(y,...)} > save2(x1,x2,file="test.RData") The point is to include the variables to be "renamed" as parameters (in my example: y). The function will use the parameter variable names wh