Hi ,
I need to save multiple (just have been created) files to a specified directory:
library(plyr)
dat2 <- data.frame(ID = c(1:10))
d_ply(dat2, "ID", function(x)
write.table(x, file = paste(x$ID[1], "txt", sep = "."), sep = "\t", row.names = FALSE)) %>%
file.path("Q:/TXT2/")
This file.path() does not work here, I don't know where should I place file = "some path" command ?
Thank you in advance for your help.