R reading a tsv file using specific encoding

前端 未结 3 1428
粉色の甜心
粉色の甜心 2021-01-17 21:49

I am trying to read a .tsv (tab-separated value) file into R using a specific encoding. It\'s supposedly windows-1252. And it has a header.

Any sugg

3条回答
  •  抹茶落季
    2021-01-17 22:11

    df <- read.delim(~/file_directory/file_name.tsv, header = TRUE) will be working fine for single .tsv file, because it is already tab separated, so no need sep = "\t". fileEncoding= "windows-1252" could be used but not necessary.

提交回复
热议问题