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