4

I need to enter non-english text data into R, but symbols åäöü gets substituted with wierd symbols like †.

Does R support reading character strings from alternative alphabets?

dimo414
  • 44,897
  • 17
  • 143
  • 228
Simon
  • 434
  • 2
  • 13

1 Answers1

1

R has support for Unicode. RStudio not picking the encoding I'm telling it to use when reading a file

Set your preferences in RStudio using the instructions from the link above.

Functions like read.csv and readLines have encoding options where you can specify something like "UTF-8".

iconv also exists to convert between encodings. There is also an extensive stringi library dedicated to string manipulation.

Community
  • 1
  • 1
CinchBlue
  • 5,009
  • 21
  • 50