over_with: Map a function over an in scope lens

Description Usage Arguments Examples

Description

Apply the specified function with named elements of the viewed data in scope. Similar to dplyr::mutate

Usage

1
over_with(d, l, f)

Arguments

d

the data

l

the lens

f

the function to use, potentially a ~ specified anonymous function. The function body is quoted, and evaluated with rlang::eval_tidy(..., data = view(d,l))

Examples

1
iris %>% over_with(id_l, ~ Sepal.Length)

cfhammill/focal documentation built on May 23, 2019, 6:04 p.m.