df_apply: Apply functions to data frame

View source: R/df_apply.R

df_applyR Documentation

Apply functions to data frame

Description

Apply functions to data frame

Usage

df_apply(.data, .f, .condition = is.numeric, .else = identity, ...)

Arguments

.data

A data frame

.f

a function

.condition

a condition function

.else

a function to apply when .condition() evaluates to FALSE

...

additional arguments that will be passed to .f()

Value

A data frame

Examples

df_apply(iris, round, is.numeric, identity, digit = 1)


lmsteffen/lmstt documentation built on March 22, 2022, 12:06 a.m.