Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

big_fread1

Read large text file


Description

Read large text file by splitting lines.

Usage

big_fread1(file, every_nlines, .transform = identity,
  .combine = rbind_df, skip = 0, ..., print_timings = TRUE)

Arguments

file

Path to file that you want to read.

every_nlines

Maximum number of lines in new file parts.

.transform

Function to transform each data frame corresponding to each part of the file. Default doesn't change anything.

.combine

Function to combine results (list of data frames).

skip

Number of lines to skip at the beginning of file.

...

Other arguments to be passed to data.table::fread, excepted input, file, skip, col.names and showProgress.

print_timings

Whether to print timings? Default is TRUE.

Value

A data.frame by default; a data.table when data.table = TRUE.


bigreadr

Read Large Text Files

v0.2.4
GPL-3
Authors
Florian Privé [aut, cre]
Initial release
2021-04-10

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.