'Cyrillic transliteration in R
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.
Solution 1:[1]
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.
Solution 2:[2]
If afterwards one uses Base R to filter the data in Cyrillic, one get's all NA's, but if dplyr is used then everything is fine.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Milos Basaraba |
| Solution 2 | Katica Ristic |
