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?
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?
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.