全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
2516 3
2016-12-05
1、导入txt文件时候:
> data<-read.table("E:\1.txt",header=TURE)
Error in file(file, "rt") : cannot open the connection
In addition: Warning message:
In file(file, "rt") : cannot open file 'E:.txt': Invalid argument
2、导入csv文件时候
> dy<-read.csv("E:\a.csv",header=TRUE)
Error in file(file, "rt") : cannot open the connection
In addition: Warning message:
In file(file, "rt") : cannot open file 'E:.csv': Invalid argument
新手导入数据时候有误,如上,发现俩是一样的问题。文件路径是对的。

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2016-12-5 15:52:51
文件路径中不能用\\ 这是转义字符 ,你可以用/或者\\
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2016-12-5 15:57:59
英雄lxz 发表于 2016-12-5 15:52
文件路径中不能用\\ 这是转义字符 ,你可以用/或者\\
解决了,谢谢,我果然弱爆了
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2016-12-5 15:59:52
whaij 发表于 2016-12-5 15:50
1、导入txt文件时候:
&gt; data dy
/或\\\\
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群