View source: R/process_chunks.R
process_chunks | R Documentation |
process a table in chunks
process_chunks(
file,
process_fn,
streamable_table = NULL,
lines = 50000L,
encoding = Sys.getenv("encoding", "UTF-8"),
...
)
file |
path to a file |
process_fn |
a function of a |
streamable_table |
interface for serializing/deserializing in chunks |
lines |
number of lines to read in a chunk. |
encoding |
encoding to be assumed for input files. |
... |
additional arguments to |
con <- system.file("extdata/mtcars.tsv.gz", package = "arkdb")
dummy <- function(x) message(paste(dim(x), collapse = " x "))
process_chunks(con, dummy, lines = 8)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.