Apply a function to a faceted piece of data.

split_apply(data, x, y, FUN, SIMPLIFY = TRUE)

Arguments

data
A data frame.
x
The independent variable (the one which FUN will be applied to).
y
The dependent variable (the one which will facet or subset data).
FUN
A function to apply to the faceted piece of data.

Examples