[R] problem in simple saving and loading data frames

From: Ram H. Sharma <sharma.ram.h_at_gmail.com>
Date: Mon, 28 Mar 2011 11:20:34 -0400

Dear all

My dataframe has > 80,000 variables which I can not everytime load into R using *.txt files (read.table option), cost me time and sometime computer decomes not responsive. So I need a way to save my dataframe in my workdirectory as such.

Execuse me if the problem is too simple. I tried the following, I do not know what is wrong with it:

Example data:

 x <- 1:10
y <- 21:30
z <- 31:40

 df2 <- data.frame(x,y, z)
save(df2, file="df2.RData")
My trials

# trying to load
Warning message:
In data(df2) : data set 'df2' not found
Warning message:
In data(df2.RData) : data set 'df2.RData' not found

Warning message:
In data("df2.RData") : data set 'df2.RData' not found

Error in load(df2) : bad 'file' argument

Error in load(df2.RData) : object 'df2.RData' not found

Thank you

        [[alternative HTML version deleted]]

R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Mon 28 Mar 2011 - 19:23:15 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 28 Mar 2011 - 20:00:24 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive