R: Summarize the Group Parameters of a Spectra Object

sumGroups {ChemoSpec} | R Documentation

## 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.

### Author(s)

Bryan A. Hanson, DePauw University.

### References

https://github.com/bryanhanson/ChemoSpec

### See Also

For a discussion of general issues of color, see `colorSymbol`. To summarize the entire object, `sumSpectra`.

### Examples

    data(metMUD1)
    sumGroups(metMUD1)

[Package ChemoSpec version 4.4.97 Index]