Skip to content
Prev 301657 / 398503 Next

Assigning a new name to object loaded with "load()"

Hi,

A bit late with my answer, but another possibility is to use to 
saveObject() / loadObject() functions from R.utils. I find it much 
easier to use than save() / load()

Example:
library(R.utils)
x <- 1:5
saveObject(x, file="test.Rbin")
y <- loadObject("test.Rbin")
identical(x,y)

HTH,
Ivan

--
Ivan CALANDRA
Universit? de Bourgogne
UMR CNRS/uB 6282 Biog?osciences
6 Boulevard Gabriel
21000 Dijon, FRANCE
+33(0)3.80.39.63.06
ivan.calandra at u-bourgogne.fr
http://biogeosciences.u-bourgogne.fr/calandra

Le 28/07/12 06:11, Alireza Mahani a ?crit :