Skip to content
Prev 246983 / 398506 Next

How to save the output of "split" command as series of .csv files

On 2011-01-10 12:56, menno wrote:
How about a simple loop:

  for(n in names(data2))
       write.table(data2[[n]],
         file = paste(dat2[[n]][, "Community"][1],
                      "_", n, ".TXT", sep=""))


Peter Ehlers