0

情况:我想像这样加载一个 .cci 文件R

data <- read.table("data.cci", header = T, dec = ".")

我也试过 read.csv/read.csv2 - 但我总是得到这个错误:

No such file or directory
Error in file(file, "rt") : cannot open the connection

感谢您考虑这个问题。

PS WD 没问题

4

1 回答 1

1

I guess the problem is your file and working directory is in different folder. You can get wd with

getwd()

and than write the correct location like. (pay attention to " / " not " \ " )

data <- read.table("C:/files/data.cci", header = T, dec = ".")
于 2018-03-06T22:02:37.047 回答