[R] saving all data in r object

uday uday_143_4u at hotmail.com
Thu Feb 23 09:01:01 CET 2012


I have 100 data files, which contains very huge data sets of location
details ( e.g latitude, longitude, time, temp) 
Now I would like to save the all data of these 100 files in r object, so I
can reload data any time. 

* Every file has different length of data 

latitude      <- NULL 
longitude  <- NULL
time            <- NULL 
temp          <- NULL 

for ( i in 1:100) { 

data<- read.table(file_s[i],header=TRUE,skip=55 )
latitude [i]      <- data[,6] 
longitude[i]   <- data[,7]
time[i]            <- data[,8]
temp[i ]         <- data [,9]

} 
save(latitude=latitude,longitude=longitude, time=time,temp=temp,
file="data.RData")
but it does not work. 

I am new in R and I got stuck here.

Cheers 
Uday 





I am beginner in R and I got stuck here 

--
View this message in context: http://r.789695.n4.nabble.com/saving-all-data-in-r-object-tp4413092p4413092.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list