Apply a function to batches of data in an Andromeda table
batchApply(tbl, fun, ..., batchSize = 1e+05, progressBar = FALSE, safe = FALSE)
An Andromeda
table (or any other 'DBI' table).
A function where the first argument is a data frame.
Additional parameters passed to fun.
Number of rows to fetch at a time.
Show a progress bar?
Create a copy of tbl first? Allows writing to the same Andromeda as being read from.
Invisibly returns a list of objects, where each object is the output of the user-supplied function applied to a batch
This function is similar to the lapply()
function, in that it applies a function to sets of
data. In this case, the data is batches of data from an Andromeda
table. Each batch will be
presented to the function as a data frame.