R: read.csv adding sub-script “X” in header

前端 未结 5 2062
眼角桃花
眼角桃花 2021-02-18 21:33

I have a data frame that has headers as this

Name  0x1  1x2

read.csv changes the header to be

Name X0x1 X1x2

5条回答
  •  执念已碎
    2021-02-18 21:52

    I met the same problem. The solution for me on MAC machine is to save the file with fileEncoding = "macintosh". Then read it by doing check.names = F.

提交回复
热议问题