Read csv from specific row

前端 未结 3 1413
后悔当初
后悔当初 2020-12-04 18:27

I have daily data starting from 1980 in csv file. But I want to read data only from 1985. Because the other dataset in another file starts from 1985. How can I skip reading

3条回答
  •  伪装坚强ぢ
    2020-12-04 18:57

    A data.table method which will offer speed and memory performance:

    library(data.table)
    fread(file, skip = 1825)
    

提交回复
热议问题