in read.table(file = file, header = header, sep
RStudio:读取csv文件报错
最新推荐文章于 2024-10-28 20:35:00 发布

取网名好难 于 2020-04-22 12:54:15 发布
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
> tab<- read.csv("data.csv",header = TRUE,stringsAsFactors = F,na.strings = "")
Warning messages:
1: In read.table(file = file, header = header, sep = sep, quote = quote, :
line 1 appears to contain embedded nulls
2: In read.table(file = file, header = header, sep = sep, quote = quote, :
incomplete final line found by readTableHeader on 'data.csv'
原因:偷懒,直接将Excel文件复制粘贴,再修改这个副本文件后缀为.csv
解决:打开Excel文件另存为.csv格式

相关知识
no such file or directory
onclick触发type=file并上传文件
【免费】PHP花涧订购系统(源码+数据库)00332资源
使input type=“file” 不可编辑
论如何把后台管理系统写出花
input[type=file] 获取上传文件的内容
input[type=“file”] change事件第二次不触发
input type=“file“属性详解,利用capture调用手机摄像头
No columns to parse from file报错
php login json,ajax + php + json = login
网址: in read.table(file = file, header = header, sep https://m.huajiangbk.com/newsview1018987.html