jianbo
我用read.table命令导入数据.总是提示"错误在file(file, "r") : 无法打开链结
此外: Warning message:
无法打开文件'$s',因为'$s'"
我的命令如下:c<-read.table("hjb.txt")
得到的是上面出现的错误,而且我已经在r上改变了当前工作目录,为什么会出现上面的问题?
怎么解决呢?
jianbo
是不是因为我用的“中国(中文)”的拼音就出现这样的问题啊
还是只能用微软的拼音法?
jianbo
急啊,大家指点下啊!
captain_21
My suggestion: try again by using the full path in R, i.e. c<-read.table("c:/program files/R/workspace/hjb.txt") to dectect whether such kind of error exists or not.
jianbo
thank you very much!