Read large text file by splitting columns.
big_fread2(file, nb_parts = NULL, .transform = identity,
.combine = cbind_df, skip = 0, select = NULL, progress = FALSE,
part_size = 500 * 1024^2, ...)
Path to file that you want to read.
Number of parts in which to split reading (and transforming).
Parts are referring to blocks of selected columns.
Default uses part_size
to set a good value.
Function to transform each data frame corresponding to each block of selected columns. Default doesn't change anything.
Function to combine results (list of data frames).
Number of lines to skip at the beginning of file
.
Indices of columns to keep (sorted). Default keeps them all.
Show progress? Default is FALSE
.
Size of the parts if nb_parts
is not supplied.
Default is 500 * 1024^2
(500 MB).
Other arguments to be passed to data.table::fread,
excepted input
, file
, skip
, select
and showProgress
.
The outputs of fread2
+ .transform
, combined with .combine
.