inst/bench/taxi_writing/data.table-multithreaded_gzip.R

{
  library(vroom)
  data <- vroom(file, col_types = c(pickup_datetime = "c"))
  vroom:::vroom_materialize(data, replace = TRUE)
}

data.table::fwrite(data, tempfile(fileext = ".gz"), sep = "\t")

Try the vroom package in your browser

Any scripts or data that you put into this service are public.

vroom documentation built on Oct. 2, 2023, 5:07 p.m.