Learn R Programming

dipsaus (version 0.3.1)

do_aggregate: Make aggregate pipe-friendly

Description

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

Usage

do_aggregate(x, ...)

Value

Results from aggregate

Arguments

x

an R object

...

other parameters passed to aggregate

See Also

Examples

Run this code

data(ToothGrowth)

ToothGrowth |>
  do_aggregate(len ~ ., mean)

Run the code above in your browser using DataLab