0

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?

2
  • I Think the responses in this link might help [QUestion that might be similar to this][1] [1]: stackoverflow.com/questions/18444769/… Commented Mar 1, 2019 at 18:15
  • read.csv(file, sep=",", check.names =F) as mentioned by @Douglas Mesquita will work and you will see you have a wierd character in Cavity_Nester<ca>. <ca> is what's throwing you off. also have a look at package janitor and clean_names function from it Commented Mar 1, 2019 at 18:20

2 Answers 2

3

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.

Sign up to request clarification or add additional context in comments.

Comments

2

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.