powered by
process a table in chunks
process_chunks( file, process_fn, streamable_table = NULL, lines = 50000L, encoding = Sys.getenv("encoding", "UTF-8"), ... )
path to a file
a function of a chunk
chunk
interface for serializing/deserializing in chunks
number of lines to read in a chunk.
encoding to be assumed for input files.
additional arguments to streamable_table$read method.
streamable_table$read
con <- system.file("extdata/mtcars.tsv.gz", package = "arkdb") dummy <- function(x) message(paste(dim(x), collapse = " x ")) process_chunks(con, dummy, lines = 8)
Run the code above in your browser using DataLab