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

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

Examples

datasets::iris %.>% transmute_nse(., Sepal_Long := Sepal.Length >= 2 * Sepal.Width, Petal_Short := Petal.Length <= 3.5) %.>% summary(.)
#> Sepal_Long Petal_Short #> Mode :logical Mode :logical #> FALSE:66 FALSE:95 #> TRUE :84 TRUE :55