Error while reading csv file in R -


i having problems in reading csv file r.

 x=read.csv("lorenzoferrone.csv",header=t)  error in make.names(col.names, unique = true) :        invalid multibyte string @ '<ff><fe>n' 

i can read file using libre office no problems.

i can not upload file because full of sensible information.

what can do?


setting encoding seem solution problem.

> x=read.csv("lorenzoferrone.csv",fileencoding = "ucs-2le") > x[2,1] [1] adriano caruso 100 levels:  ada adriano caruso adriano diaz adriano diaz alberto ferrone alexey ... zia tina 

you need specify correct delimiter in sep argument.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -