Learn R Programming

ChemoSpec (version 4.3.34)

sumGroups: Summarize the Group Parameters of a Spectra Object

Description

This function summarizes the group membership and descriptive parameters of a Spectra object.

Usage

sumGroups(spectra)

Arguments

spectra
An object of S3 class Spectra whose group membership information is desired.

Value

A data frame as follows. Note that if there are groups with no members (due to previous use of removeSample), these are dropped.
group
The name of the group.
no.
The number in the group.
color
The color assigned to the group.
symbol
The symbol assigned to the group.
alt.symbol
The alternative symbol, a lower-case letter, assigned to the group.

References

https://github.com/bryanhanson/ChemoSpec

See Also

For a discussion of general issues of color, see colorSymbol.

Examples

Run this code
data(metMUD1)
sumGroups(metMUD1)

Run the code above in your browser using DataLab