Wrangle only columns that pass a logical test
mutate_if_data(.data, .predicate, .f)
.data | Input data frame |
---|---|
.predicate | Function applied to each column evaluating to a logical |
.f | Function applied to each .predicate-passing column. Can be written
in the formula |
Data frame with .predicate-passing columns mutated.
Other mutate: mutate_data