Learn R Programming

nexus (version 0.3.0)

extract: Group-based Subset

Description

Group-based Subset

Usage

extract(object, ...)

# S4 method for CompositionMatrix extract(object, name)

Value

A CompositionMatrix object.

Arguments

object

A CompositionMatrix object.

...

Currently not used.

name

A character vector specifying the group of object to extract.

Author

N. Frerebeau

See Also

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

Examples

Run this code
## Data from Aitchison 1986
data("slides")
head(slides)

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

groups(coda)

Run the code above in your browser using DataLab