如何在R中编码泰语字符

如何在R中编码泰语字符,r,unicode,rstudio,R,Unicode,Rstudio,我已经使用read.table读取了文本文件 group <- read.table("Sample_No2.txt", header = T, sep = ",", stringsAsFactors = F) group您需要将locale设置为泰语,以便能够阅读泰语字母表 Sys.setlocale(locale = "Thai") 我希望这是您一直在寻找的答案,因为其他人都应该这样做,R支持泰语。查看这是否有效这是RStudio data viewer的已知错误。

我已经使用
read.table
读取了文本文件

group <- read.table("Sample_No2.txt", header = T, sep = ",", stringsAsFactors = F)

group您需要将locale设置为泰语,以便能够阅读泰语字母表

Sys.setlocale(locale = "Thai")

我希望这是您一直在寻找的答案,因为其他人都应该这样做,R支持泰语。查看这是否有效这是RStudio data viewer的已知错误。