I Del Toro
I Del Toro

Reputation: 943

Unable to read in csv with read.csv function

Ive used the read.csv function for years and never seen this error.

zError in make.names(col.names, unique = TRUE) : invalid multibyte string 10

I have a fairly standard .csv file I am trying to read in (download a copy here). Any ideas on what is going on?

Upvotes: 0

Views: 124

Answers (2)

Sonny
Sonny

Reputation: 3183

Some on your columns might have special characters. read_csv from readr package should be able to deal with that well and it is very fast too.

Upvotes: 2

Douglas Mesquita
Douglas Mesquita

Reputation: 1021

It means that something is strange in your column names. Try to use the argument check.names = FALSE in your call. Also be sure you are giving the right sep argument.

Upvotes: 3

Related Questions