When I try to read a comma separated values-file containing scandinavian letters into a data frame in r, with the read.table()
command, it doesn't come out right. That is, I want letters such as "å", "æ", "ø", "ä" and "ö" to be included correctly. Right now, they are represented by non-alphabetic signs and they often cause other opperations, such as plotting, to complain.
I'm saving my csv-files in the ordinary text editor in OS X, but I've also tried using TextWrangler, saving my file in a specific format, such as UTF-8 and UTF-16 and then specify my encoding within the read.table()
command with the "encoding="
option.
What does a minimal example, where scandinavian letters are imported from a csv-file into a data frame, look like?