Description Usage Arguments Details Value See Also Examples
Mutate a data frame by the mutateTerms. Accepts arbitrary text as mutateTerms to allow forms such as "Sepal.Length >= 2 * Sepal.Width". Terms are vectors or lists of the form "lhs := rhs". Semantics are: terms are evaluated left to right if splitTerms==TRUE (the default).
1 2 3 4 5 6 7 8 9 |
.data |
data.frame |
mutateTerms |
character vector of column expressions to mutate by. |
... |
force later terms to be bound by name |
splitTerms |
logical, if TRUE into separate mutates (if FALSE instead, pass all at once to dplyr). |
warn |
logical, if TRUE warn about name re-use. |
env |
environment to work in. |
printPlan |
logical, if TRUE print the expression plan. |
Note: this method as the default setting splitTerms = TRUE
, which is
safer (avoiding certain known dplyr
/dblyr
issues)
(please see the side-notes of https://winvector.github.io/FluidData/partition_mutate.html for some references).
.data with altered columns.
mutate_nse
, mutate
, mutate_at
, :=
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.