Reframe a data frame. Note this is a simple alias for summarize()
that always returns an ungrouped tidytable.
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)
#> # A tidytable: 6 × 3
#> cyl qs prob
#> <dbl> <dbl> <dbl>
#> 1 6 160 0.25
#> 2 6 196. 0.75
#> 3 4 78.8 0.25
#> 4 4 121. 0.75
#> 5 8 302. 0.25
#> 6 8 390 0.75