Reads a file in chunks, applies a function to each of them, and returns to results of the function calls.
read_lines_apply(
file_path,
func,
buffer_size = 1000,
simplify = FALSE,
skip = 0
)
list
of results of func
(character
of length 1) The path to a file to read.
(function
) The function to run on each chunk of the file.
(numeric
of length 1) The number of lines in each chunk
(logical
of length 1) If TRUE
, then the result is simplified to a vector.
(numeric
of length 1) Where to start reading the file.