group_extract: Group-based Subset

group_extractR Documentation

Group-based Subset

Description

Group-based Subset

Usage

group_extract(object, ...)

## S4 method for signature 'GroupedComposition'
group_extract(object, which)

Arguments

object

A GroupedComposition object.

...

Currently not used.

which

A character vector specifying the groups of object to extract.

Value

A CompositionMatrix object.

Author(s)

N. Frerebeau

See Also

Other grouping methods: group(), group_metadata, group_split()

Examples

## 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)

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