[英]not able to read file using read.csv in R
I am not able to read a csv file in R. The file I imported need some cleaning such as removing text qualifiers such ",' etc. Still I am unable to read it. shows the following error. 我无法读取R中的csv文件。我导入的文件需要一些清理工作,例如删除文本限定符,例如“,”等。仍然无法读取。显示以下错误。
currency<-read.csv("02prepared data/scraped data kickstarter/film & video1.csv")
Error in type.convert(data[[i]], as.is = as.is[i], dec = dec, numerals = numerals, : invalid multibyte string at '45,<30>97' type.convert(data [[i]]中的错误,as.is = as.is [i],dec = dec,数字=数字,:无效的多字节字符串为'45,<30> 97'
here is the link to the file:- https://drive.google.com/open?id=1ABXPoYxk8b4WCQuRAu-Hhh2OvpJ76PhH 这是文件的链接: -https : //drive.google.com/open?id=1ABXPoYxk8b4WCQuRAu - Hhh2OvpJ76PhH
You can try setting fileEncoding = 'latin1', as suggested in this answer: https://stackoverflow.com/a/14363274/6304113 您可以尝试设置fileEncoding ='latin1',如该答案所示: https ://stackoverflow.com/a/14363274/6304113
I tried the method in the link to read your file, and it works for me. 我尝试了链接中的方法来读取您的文件,并且对我有用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.