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
 data(df2)
Warning message:
In data(df2) : data set 'df2' not found
data(df2.RData)
Warning message:
In data(df2.RData) : data set 'df2.RData' not found

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

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

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

Thank you
Ram

        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

Reply via email to