Re: [R] saving all data in r object

2012-02-24 Thread uday
Hi Iris, thanks for reply but this solution does not work Uday -- View this message in context: http://r.789695.n4.nabble.com/saving-all-data-in-r-object-tp4413092p4417933.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-

Re: [R] saving all data in r object

2012-02-24 Thread R. Michael Weylandt
You have three problems: 1) You don't post with context 2) You have a (likely OS permissions) issue that keeps you from accessing the RData file 3) You can't put a whole bunch of data in a single element of an object (ie., you are trying to put a column of data in a single element of an object: if

Re: [R] saving all data in r object

2012-02-24 Thread iriseekhout
Hi Uday, You could try to include 'write.table' in your loop and use paste to save every file separately like this: 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 ]

Re: [R] saving all data in r object

2012-02-23 Thread uday
Michael , the first error which I got is "number of items to replace is not a multiple of replacement length" sorry last time it did not copied whole thing -- View this message in context: http://r.789695.n4.nabble.com/saving-all-data-in-r-object-tp4413092p4414058.html Sent from the R help ma

Re: [R] saving all data in r object

2012-02-23 Thread uday
Thanks for reply Michael the error which I got is as follows : Error in gzfile(file, "wb") : cannot open the connection In addition: Warning message: In gzfile(file, "wb") : cannot open compressed file 'data.RData', probable reason 'Permission denied' -- View this message in context: http://

Re: [R] saving all data in r object

2012-02-23 Thread R. Michael Weylandt
It looks like it works. (I ran your code leaving out the inner non-reproducible loop and just saving the NULL objects with your syntax) What is the error you are getting? Michael On Thu, Feb 23, 2012 at 3:01 AM, uday wrote: > > I have 100 data files, which contains very huge data sets of locati