In the R scripting language, how do I write lines of text, e.g. the following two lines
Hello
World
to a file named "output.txt"?
转载于:https://stackoverflow.com/questions/2470248/write-lines-of-text-to-a-file-in-r
In the R scripting language, how do I write lines of text, e.g. the following two lines
Hello
World
to a file named "output.txt"?
转载于:https://stackoverflow.com/questions/2470248/write-lines-of-text-to-a-file-in-r
fileConn<-file("output.txt")
writeLines(c("Hello","World"), fileConn)
close(fileConn)