简体   繁体   中英

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.

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'

here is the link to the file:- 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

I tried the method in the link to read your file, and it works for me.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM