Description Usage Arguments Details Author(s) Examples
mutate acting only on the rows satisfying the condition
1 2 | mutate_cond(.data, condition, ..., envir = parent.frame(),
na.rmCond = FALSE)
|
.data |
data.frame to be modified |
condition |
condition for selecting rows to be modified |
... |
further arguments to |
envir |
the frame where the condition is evaluated |
na.rmCond |
set to TRUE to set NA values in cond to FALSE. By default an error is thrown |
condition is evaluated in .data inside the parent frame.
Hence column names can be used.
.data
refers to the subset group of the data.frame processed.
Thomas Wutzler
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.