Description Usage Arguments Value Examples
Simple helper function to allow conditional application of mutate.
1 |
data |
Dataframe that meets standard dplyr requirements. |
... |
Additional arguments. |
Returns a dataframe subsetted as requested.
1 2 3 4 | mtcars %>% mutate_when(
mpg > 22, list(cyl = 100),
disp == 160, list(cyl = 200)
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.