take out accents in string r code example
Example 1: R string ascii accents
iconv(c("über","Sjögren's"),to="ASCII//TRANSLIT")
[1] "uber" "Sjogren's"
Example 2: replace accented characters in r
string = "ábçdêfgàõp"
iconv(string, to='ASCII//TRANSLIT')
Output: "abcdefgaop"