Description Usage Arguments Value Examples
A function that mutates data frames but only acts on the rows satisfying the condition
1 | mutate_cond(.data, condition, ..., envir = parent.frame())
|
.data |
a dataframe or data table |
condition |
an expreessed condition to mutate on |
... |
additional conditions separated by commas |
a mutated dataframe
1 | DF %>% mutate_cond(measure == 'exit', qty.exit = qty, cf = 0, delta.watts = 13)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.