extract {nexus}R 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)

[Package nexus version 0.3.0 Index]