extract: Group-based Subset

extractR Documentation

Group-based Subset

Description

Group-based Subset

Usage

extract(object, ...)

## S4 method for signature 'CompositionMatrix'
extract(object, name)

Arguments

object

A CompositionMatrix object.

...

Currently not used.

name

A character vector specifying the group of object to extract.

Value

A CompositionMatrix object.

Author(s)

N. Frerebeau

See Also

Other subsetting methods: bind, split(), subset()

Examples

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

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

groups(coda)

nexus documentation built on Sept. 11, 2024, 6:43 p.m.