scan_file: scan_file

Description Usage Arguments

View source: R/scan_file.R

Description

scan_file

Usage

1
2
3
scan_file(file, n = 10000, read_func = function(file, nrows, header) { 
     read.csv(file, nrows = nrows, header = header) }, header = FALSE,
  agg_func = econ::side_summary, verbose = FALSE)

Arguments

file

path to a text file

n

chunk size

read_func

function to use for reading file

header

logical indicating whether file has a header

agg_func

aggregation function for each chunk

verbose

logical


wkostelecki/wtils documentation built on May 29, 2019, 2:29 p.m.