do_aggregate: Make aggregate pipe-friendly

View source: R/apply.R

do_aggregateR Documentation

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


data(ToothGrowth)

ToothGrowth |>
  do_aggregate(len ~ ., mean)


dipsaus documentation built on April 4, 2025, 5:11 a.m.