inst/examples/ex-group.R

## Data from Aitchison 1986
data("slides")

## Coerce to compositional data
coda <- as_composition(slides, groups = 2)

## Grouping metadata
group_levels(coda)

group_names(coda)

group_indices(coda)

group_rows(coda)

group_length(coda)

group_size(coda)

Try the nexus package in your browser

Any scripts or data that you put into this service are public.

nexus documentation built on April 4, 2025, 1:12 a.m.