Remove accents from a dataframe column in R

前端 未结 4 1243
感情败类
感情败类 2021-02-05 04:03

I got a data.table base. I got a term column in this data.table

class(base$term)
[1] character
length(base$term)
[1] 27486

I\'m able to remove

4条回答
  •  一生所求
    2021-02-05 04:39

    Ok the way to solve the problem :

    Encoding(base$terme[2])
    [1] "UTF-8"
    iconv(base$terme[2],from="UTF-8",to="ASCII//TRANSLIT")
    [1] "Millesime"
    

    Thanks to @nicola

提交回复
热议问题