Learn R Programming

mosaic (version 0.4-1)

dfapply: apply-type function for data frames

Description

An apply-type function for data frames.

Usage

dfapply(data, FUN, select = is.numeric, ...)

Arguments

data
data frame
FUN
a function to apply to (some) variables in the data frame
select
function used to select variables to which FUN is applied. See examples.
...
arguments passed along to FUN

See Also

apply, sapply, tapply, lapply

Examples

Run this code
dfapply(iris, favstats)
dfapply(HELPrct, table, select=is.factor)

Run the code above in your browser using DataLab