Replace accented characters in R with non-accented counterpart (UTF-8 encoding) [duplicate]
This question already has an answer here: Replace multiple letters with accents with gsub 11 answers I have some strings in R in UTF-8 encoding that contain accents. E.g. string="Hølmer" or string="Elizalde-González" Is there any nice function in R to replace the accented characters in these strings by their unaccented counterpart? I saw some solutions in PHP here , but how do I do this in R? E.g. the PHP code $unwanted_array = array( 'Š'=>'S', 'š'=>'s', 'Ž'=>'Z', 'ž'=>'z', 'À'=>'A', 'Á'=>'A', 'Â'=>'A', 'Ã'=>'A', 'Ä'=>'A', 'Å'=>'A', 'Æ'=>'A', 'Ç'=>'C', 'È'=>'E', 'É'=>'E', 'Ê'=>'E', 'Ë'=>'E',