Loading data from a package on a windows machine, encoding is botched.
require(vegdata)
tax_dbf <- load.taxlist("GermanSL 1.3", detailed=TRUE)
tax_dbf[33,"BEGRUEND"]
[1] " "Einfügen einer Zwischenebene""
I can fix that:
Encoding(tax_dbf$BEGRUEND) <- "UTF-8"
tax_dbf[33,"BEGRUEND"]
[1] "Einfügen einer Zwischenebene"
However, I didn't manage to find an easy way to declare encoding for all character columns in the df, and my SO search foo is weak today as well. This is confuddling.
Anyone from the tidyverse having a oneliner for my prose?