fread unable to read .csv files with first column empty

后端 未结 3 1577
梦谈多话
梦谈多话 2021-01-02 01:17

Say I have the first test.csv that looks like this

,a,b,c,d,e

If I try to read it using read.csv, it works fine.<

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-02 02:07

    I've tried making that csv file and running the code. It seems to work now - same for other people? I thought it might be an issue with not having a new line at the end (hence the warning from read.csv), but fread copes fine whether there's an new line at the end or not.

提交回复
热议问题