mutate_if: mutate selected rows

Description Usage Arguments

Description

Old pseudonym for mutate_rows. Originally the function mutate_rows was called mutate_if, however, dplyr 5.0 introduced also a function called mutate_if that does something different however. I keep the synonym mutate_if in order to reduce the probability that old code breaks, but it is recommended to use mutate_rows instead.#'

Usage

1
mutate_if(.data, .if, ...)

Arguments

.data

the data

.if

a logical condition that selects rows, e.g. a=="B"

...

the command to mutate existing columns


skranz/dplyrExtras documentation built on May 20, 2020, 6:39 p.m.