mutate-if.Rd
Apply functions depending on a condition
map_if_condition(.x, condition, .f_if_true = identity, .f_if_false = identity)
map_if_true(.x, condition, .f = identity)
map_if_false(.x, condition, .f = identity)
An object
TRUE or FALSE
Function to apply when `condition` is `TRUE`
Function to apply when `condition` is not `TRUE`
Function to apply
`.x` or a function applied to `.x`, depending on `condition`