group_subset: Group-based Subset

group_subsetR Documentation

Group-based Subset

Description

Group-based Subset

Usage

group_subset(object, ...)

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

## S4 method for signature 'GroupedLogRatio'
group_subset(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_names(), group_split(), is_assigned()

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_n(coda)

group_size(coda)

tesselle/nexus documentation built on June 1, 2025, 9:04 p.m.