还是出现无法打开链接,出现警告信息。
> d <- data.frame(obs = c(1, 2, 3), treat = c("A", "B", "A"), weight = c(2.3, NA, 9))
> write.table(d, file = "c://data//foo.txt", row.names = F, quote = F)
错误于file(file, ifelse(append, "a", "w")) : 无法打开链结
此外: 警告信息:
In file(file, ifelse(append, "a", "w")) :
无法打开文件'c://data//foo.txt': No such file or directory
麻烦您再帮我看下。谢谢。