Skip to contents

Add or modify columns in atom data

Usage

grab_mutate(grab, ..., .recursive = TRUE)

Arguments

grab

A grab_atom or grab_bag.

...

Named expressions 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)))
#> Error in grab_atom("point", dfr(x = c(0.2, 0.8), y = c(0.3, 0.7))): could not find function "grab_atom"
grab_mutate(g, z = x + y)
#> Error in grab_mutate(g, z = x + y): could not find function "grab_mutate"