transmute a data frame by the transmuteTerms. Accepts arbitrary text as transmuteTerms to allow forms such as "Sepal.Length >= 2 * Sepal.Width".
transmute_se(.data, transmuteTerms, env = parent.frame(), warn = TRUE)
.data | data.frame |
---|---|
transmuteTerms | character vector of column expressions to transmute by. |
env | environment to work in. |
warn | logical, if TRUE warn about possible name collisions. |
.data transumuted by transmuteTerms.
datasets::iris %.>% transmute_se(., qae(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