aggregate.hyperframe: Aggregate Hyper Data Frame

View source: R/aggregate.hyperframe.R

aggregate.hyperframeR Documentation

Aggregate Hyper Data Frame

Description

To aggregate a hyperframe.

Usage

## S3 method for class 'hyperframe'
aggregate(x, by, ...)

Arguments

x

hyperframe

by

two-sided formula, whose right-hand-side contains only the regular-column names of the input x

...

additional parameters of the function aggregate.data.frame, except for simplify

Value

The S3 method aggregate.hyperframe() returns a hyperframe.

Examples

spatstat.data::demohyper |>
 aggregate(by = . ~ Group, FUN = unique)

spatstat.data::flu |>
 aggregate(by = . - frameid ~ virustype:stain, FUN = unique)
 
spatstat.data::osteo |>
 aggregate(by = . - brick ~ shortid, FUN = unique)
  

groupedHyperframe documentation built on June 21, 2026, 5:11 p.m.