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

前端 未结 5 2045
眼角桃花
眼角桃花 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:56

    read_csv('file_name.csv",check,names=F)
    

    check.names=F, strips the white space character and removes the "x"

提交回复
热议问题