i have a loop which looks likes this:
> data.info <- rbind(data.info, cbind(station.id, year, date, > max.discharge)) + y <- split(data.info, data.info[station.id]) + for (i in names(y)) {write.csv(y[[i]], file=paste(i, ".csv", sep=","))} i am wondering, where the file (which i am about to write in .csv format) will be saved? i looked at ?write.csv and it says there that : file either a character string naming a file or a connection open for writing. "" indicates output to the console. correct me if i'm wrong but the way i undestand it is, i should have a file or a working directory where the .csv will be written. if for example i have a working directory "E:/my_work_directory", how can i save this splitted files in the same directory? can anybody please enlighten me more with write.csv and the argument file? thanks.. -- View this message in context: http://www.nabble.com/basic-inquiry-regarding-write.csv-tp22073053p22073053.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.