df_apply | R Documentation |
Apply functions to data frame
df_apply(.data, .f, .condition = is.numeric, .else = identity, ...)
.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() |
A data frame
df_apply(iris, round, is.numeric, identity, digit = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.