Learn R Programming

ChemoSpec (version 3.0-1)

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(CuticleIR)
sumGroups(CuticleIR)

Run the code above in your browser using DataLab