[R] saving all data in r object
iriseekhout
i.eekhout at vumc.nl
Fri Feb 24 12:28:26 CET 2012
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 ] <- data [,9]
write.table (lattitude, file=paste("lattitude", i, sep="_") )
write.table (longitude, file=paste("longitude", i, sep="_"))
write.table (time, file=paste("time", i, sep="_"))
write.table (temp, file=paste("temp", i, sep="_"))
}
I think that should work.
Cheers,
Iris
--
View this message in context: http://r.789695.n4.nabble.com/saving-all-data-in-r-object-tp4413092p4416896.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list