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. ______________________________________________ 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.