Cyrillic transliteration in R

后端 未结 3 1623
无人共我
无人共我 2021-01-20 20:28

Are there packages for Cyrillic text transliteration to Latin in R? I need to convert data frames to Latin to use factors. It is somewhat messy to use Cyrillic factors in R.

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-20 21:02

    It is possible to do it with stringi package as you above, but with different transform identifier, for Serbian latin:

    `stri_trans_general("жшчћђ", "Serbian-Latin/BGN")`
    

    All characters should be transformed correctly to Serbian latin.

提交回复
热议问题