Learn R Programming

tbltools (version 0.1.0)

mutate_if_data: Mutate certain columns

Description

Wrangle only columns that pass a logical test

Usage

mutate_if_data(.data, .predicate, .f)

Arguments

.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 ~ .x format.

Value

Data frame with .predicate-passing columns mutated.

See Also

Other mutate: mutate_data