Skip to contents

Filter rows in atom data

Usage

grab_filter(grab, expr, .recursive = TRUE)

Arguments

grab

A grab_atom or grab_bag.

expr

A logical expression evaluated in each atom's data context.

.recursive

Logical. If TRUE, recurse through bag children.

Value

A transformed grab object.

Examples

g <- grab_atom("point", dfr(x = c(0.2, 0.8), y = c(0.3, 0.7), size = c(4, 9)))
#> Error in grab_atom("point", dfr(x = c(0.2, 0.8), y = c(0.3, 0.7), size = c(4,     9))): could not find function "grab_atom"
grab_filter(g, size < 8)
#> Error in grab_filter(g, size < 8): could not find function "grab_filter"