transmute_nse: transmute non-standard evaluation interface.

Description Usage Arguments Value See Also Examples

View source: R/transmute_nse.R

Description

transmute a data frame by the transmuteterms from ....

Usage

1
2
3
4
5
6
transmute_nse(
  .data,
  ...,
  transmute_nse_env = parent.frame(),
  transmute_nse_warn = TRUE
)

Arguments

.data

data.frame

...

stringified expressions to transmute by.

transmute_nse_env

environment to work in.

transmute_nse_warn

logical, if TRUE warn about possible name collisions.

Value

.data with altered columns(other columns dropped).

See Also

transmute_se, transmute, transmute_at, :=

Examples

1
2
3
4
datasets::iris %.>%
  transmute_nse(., Sepal_Long := Sepal.Length >= 2 * Sepal.Width,
                   Petal_Short := Petal.Length <= 3.5) %.>%
  summary(.)

seplyr documentation built on Sept. 5, 2021, 5:12 p.m.