powered by
Apply a boolean test to batches of data in an Andromeda table and terminate early
batchTest(tbl, fun, ..., batchSize = 1e+05)
Returns FALSE if any of the calls to the user-supplied function returned FALSE, else returns TRUE.
FALSE
TRUE
An Andromeda table (or any other 'DBI' table).
Andromeda
A function where the first argument is a data frame and returns a logical value.
Additional parameters passed to fun.
fun
Number of rows to fetch at a time.
This function applies a boolean test function to sets of data and terminates at the first FALSE.
andr <- andromeda(cars = cars) fun <- function(x) { is.unsorted(x %>% select(speed) %>% collect()) } result <- batchTest(andr$cars, fun, batchSize = 25) result # [1] FALSE close(andr)
Run the code above in your browser using DataLab