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/DS303_Rpackage documentation built on April 14, 2022, 11:45 a.m.