-1

In R, I tried to see the summary of my data after converting them from numbers to characters and this message revealed continuously:

Error in nchar(x, type = "w"): invalid multibyte string, element 18
Spacedman
  • 92,590
  • 12
  • 140
  • 224
  • 1
    Can you post an example of your dataset and you've tried to do? – AntoniosK Nov 05 '17 at 14:25
  • What are your data? What did you do? What are you expecting as result? Please see https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example – JRR Nov 05 '17 at 14:43

1 Answers1

0

Sounds like a system locale issue. See this blog post for an example that may be similar to your case use.

In a nutshell, try running this before the rest of your code:

Sys.setlocale("LC_ALL", "English")
HAVB
  • 1,858
  • 1
  • 22
  • 37