R语言写入txt文件

Linux:相对路径,存放到了和代码相同目录
write.table(x, "./abc.txt")


Windows:绝对路径
write.table(x, "D:/codes/abc.txt")