我在读取csv文件时,如sms_raw <- read.csv("E:/R/mlrdatasets/sms_spam.csv", stringsAsFactors = FALSE)
出现如下警告提示:

Warning message:
In scan(file = file, what = what, sep = sep, quote = quote, dec = dec,  :
  EOF within quoted string

方法一:调用Sys.setlocale("LC_ALL", "English")
方法二:禁用qutoe,即设置quote = "",你把语句改为sms_raw <- read.csv("E:/R/mlrdatasets/sms_spam.csv", stringsAsFactors = FALSE,quote = "")
方法三:编码问题,把读取编码设置为fileEncoding = "Latin1"

In scan(file = file, what = what, sep = sep, quote = quote, dec = dec,  :   EOF within quoted string相关推荐

  1. R语言报错:Error in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, : n行没有x元素

    今天在使用R语言读取一个txt文件时,报如下错误. > data <- read.table("D:\\StudentTest\\评分.txt", sep=" ...

  2. Error in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, : line 1 did not ha

    一开始分析数据就开始各种bug~好哒,继续记录 导入数据的时候,出现 Error in scan(file = file, what = what, sep = sep, quote = quote, ...

  3. R:CSV读取问题Error in read.table(file = file, header = header, sep = sep, quote = quote, : 列的数目比列的名字要多

    Error in read.table(file = file, header = header, sep = sep, quote = quote, : 列的数目比列的名字要多 Code: user ...

  4. eclipse maven 项目发布到tomcat 报错 Failed to scan JAR [file:/C:/xxxxx.jar] from WEB-INF/lib

    报错信息如下: 警告: Failed to scan JAR [file:/D:/Development/Tomcat/apache-tomcat-7.0.35-64bit/webapps/Monda ...

  5. MyEclipse Maven 警告: Failed to scan JAR [file:/C:/xxxxx.jar] from WEB-INF/lib

    警告: Failed to scan JAR [file:/C:/Program%20Files/Tomcat%207.0/me-webapps/nlp/WEB-INF/lib/xercesImpl- ...

  6. IOError: Unable to open file (File signature not found)

    keras加载模型有两种方式1.model = load_model('model.h5') 2. model = Sequential() model.add(Conv2D(32, (3, 3), ...

  7. 成功解决CondaError: Error reading file, file should be a text file containing packages conda create --he

    成功解决CondaError: Error reading file, file should be a text file containing packages conda create --he ...

  8. 解决linux下创建用户时出现Creating mailbox file: File exists

    在linux下用useradd添加用户时,出现错误: Creating mailbox file: File exists? 为什么会出现这样的问题? 原来linux下添加用户后,会在系统里自动加一个 ...

  9. Centos系列 Curl error (37): Couldn‘t read a file:// file for file:///etc/pki/rpm-gpg/RPM-GPG-KEY-XXXX

    最近在Centos8系统安装gcc时提示"Curl error (37): Couldn't read a file:// file for file:///etc/pki/rpm-gpg/ ...

最新文章

  1. stitching detail输出的dot图含义
  2. 继续Bargaining
  3. Codeforces1080F. Katya and Segments Sets
  4. 语录系统2.0随机一段话源码
  5. Java动态代理之JDK实现和CGlib实现
  6. 如何解决空虚感?(转)
  7. 案例学习BlazeDS+Spring之八InSync06“松耦合”UI同步事件通知
  8. c语言俄罗斯方块源代码 解说,C语言课程设计俄罗斯方块源代码解说.doc
  9. 知网HTML阅读是什么,HTML – 屏幕阅读器究竟是什么?我应该如何处理我的网站?...
  10. 千万融资资金为何青睐edge这家公司?
  11. 如何卸载干净JAVA
  12. Python 中列表与元组的异同
  13. 超级产品:喜茶,凭什么能估值90亿
  14. Visual Studio 2022安装到非C盘完全指南
  15. 福布斯发布2019年度全球亿万富豪榜:贝佐斯蝉联首富 马化腾马云上榜
  16. 人工智能在无人驾驶中的应用
  17. 学习编程需要什么基础?从基础到高级?
  18. 哪款微信群管理软件好用?
  19. Misc-登机牌[i春秋][150pt]
  20. 实验指导书(翻译)Project 4: Transactions

热门文章

  1. 异步工作 boost asio
  2. UART 和 N_GSM协议 及 linux设备驱动TTY关系
  3. 哪吒前端周刊 | 第001期
  4. Node,Vue,Vite,D3下载与可视化
  5. D3.js实现人物关系图谱有移动、拖拽、放大功能
  6. buck电路matlab,buck电路simulink仿真
  7. Java将对象信息写到word模板中(全网最简单版)
  8. windows错误事件10016解决方案
  9. 2018.10.17第二次课及预习
  10. 京东数据分析工程师面试题11.17-11.19编辑