The complement of filter.tbl_gpu(), like dplyr::filter_out(): all
conditions are combined with AND first, then the rows where that
combination is TRUE are dropped. Rows where it is FALSE or NA are
kept (so this is not filter(!cond)). With no conditions every row is
dropped. It runs like filter(): the same conditions run on the GPU,
with the same window predicates, .by, CPU fallbacks, and eager and lazy
modes.
Usage
# S3 method for class 'tbl_gpu'
filter_out(.data, ..., .by = NULL, .preserve = FALSE)Arguments
- .data
A
tbl_gpuobject created bytbl_gpu().- ...
Logical expressions; rows where all of them are
TRUEare dropped.- .by
Optional grouping columns for this call only (tidyselect), run on the GPU:
filter(df, x > mean(x), .by = g)gives the same rows asdf |> group_by(g) |> filter(x > mean(x)) |> ungroup(), and the result is ungrouped. Supplying.bywhen.datais already grouped (viagroup_by()) is an error, as in dplyr.- .preserve
Whether to keep the groups the filter emptied. With
TRUE, agroup_by()-grouped result keeps the input's group keys (empty groups included) forgroup_data(),collect()andsummarise(), like dplyr (seegroup_by.tbl_gpu()for what carries them on).FALSErecomputes the groups from the remaining rows.
