Learn R Programming

ChemoSpec (version 4.0.6)

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.
  • groupThe name of the group.
  • no.The number in the group.
  • colorThe color assigned to the group.
  • symbolThe symbol assigned to the group.
  • alt.symbolThe 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