rm_accent.Rd
rm_accent
Function to remove accents from words
rm_accent(str, pattern = "all")
str | vector of strings that will have their accents removed. |
---|---|
pattern | string vector with one or more elements indicating which accents should be removed. To indicate which accents should be removed, a vector with the symbols should be passed. Example: pattern = c("´", "^") will strip out the acute and caret accents only. Other accepted words: "all" (remove all accents, which are "´", "`", "^", "~", "¨", "ç") |
vector without accent
#> [1] "São Paulo"#> [1] "Sao Paulo"#> [1] "Sao Paulo"