Extract bz2 file in R

前端 未结 5 919
我在风中等你
我在风中等你 2020-12-04 21:39

I have bunch of .csv.bz2 files, which i have to download, extract, and read in R. I downloaded the file and want to extract it to current working directory, the

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-04 22:24

    You can make use of the super fast fread which has built-in support for bz2-compressed files

    require(data.table)
    fread("file.csv.bz2")
    

提交回复
热议问题