mutate_rows: Mutate at specific rows based on a specific condition.

Description Usage Arguments Details Value

View source: R/mutate_rows.R

Description

This function was developed by Davis Vaughan and can be found at his GitHub gist. https://gist.github.com/DavisVaughan/24cbc404c09e75d3bf23467d15a7d42d.

Usage

1
mutate_rows(.data, .predicate, ...)

Arguments

.data

The data being supplioed.

.predicate

The condition to be met

...

Any number of columns/values to impute.

Details

I am using it in this package as it seems more logical to me than to mutate by column and case_when

Value

The mutated data frame.


jdtrat/iapsr documentation built on Oct. 2, 2021, 12:36 a.m.