我有 unicode csv 文件:
LabelName,Label1,Label2,SpeciesLabel,Group,Subgroup,Species
التسمية 1,Group 1,Subgroup 1,Species 1,1,1,1
التسمية 2,Group 1,Subgroup 1,Species 1,1,1,1
التسمية 3,Group 1,Subgroup 1,Species 1,1,1,1
我想将它读入 R,我使用了这个命令:
Data = read.csv("Data.csv", encoding="UTF-8", fileEncoding = "UTF-8")
但我得到了这个错误:
Error in read.table(file = file, header = header, sep = sep, quote = quote, : empty beginning of file In addition: Warning messages: 1: In read.table(file = file, header = header, sep = sep, quote = quote, : invalid input found on input connection 'Data.csv' 2: In read.table(file = file, header = header, sep = sep, quote = quote, : line 1 appears to contain embedded nulls 3: In read.table(file = file, header = header, sep = sep, quote = quote, : incomplete final line found by readTableHeader on 'Data.csv'
如何在 R 中读取 unicode(带有阿拉伯字母)csv 文件。
谢谢!