reframe: Reframe a data frame

View source: R/reframe.R

reframeR Documentation

Reframe a data frame

Description

Reframe a data frame. Note this is a simple alias for summarize() that always returns an ungrouped tidytable.

Usage

reframe(.df, ..., .by = NULL)

Arguments

.df

A data.frame or data.table

...

Aggregations to perform

.by

Columns to group by

Examples

mtcars %>%
  reframe(qs = quantile(disp, c(0.25, 0.75)),
          prob = c(0.25, 0.75),
          .by = cyl)

mtfairbanks/gdt documentation built on April 12, 2024, 6:51 p.m.