Learn R Programming

dipsaus (version 0.0.3)

do_aggregate: Make aggregate pipe-friendly

Description

A pipe-friendly wrapper of aggregate when using formula as input.

Usage

do_aggregate(x, ...)

Arguments

x

an R object

...

other parameters passed to aggregate

Value

Results from aggregate

See Also

aggregate

Examples

Run this code
# NOT RUN {
library(magrittr)
data(ToothGrowth)

ToothGrowth %>%
  do_aggregate(len ~ ., mean)

# }

Run the code above in your browser using DataLab