使用wite.csv函数,我无法写入csv fie
write.csv(data.frame(Actual,Predicted), file="SampleData.csv", row.names=FALSE)
我希望文件夹中有一个SampleData.csv文件,但出现此错误
Error in file(file, ifelse(append, "a", "w")) :
cannot open the connection
In addition: Warning message:
In file(file, ifelse(append, "a", "w")) :
cannot open file 'SampleData.csv': No such file or directory
我试图更改目录,但仍然出现相同的错误。