sumGroups: Summarize the Group Membership of a Spectra or Spectra2D...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/sumGroups.R

Description

This function summarizes the group membership of a Spectra or Spectra2D object.

Usage

1
sumGroups(spectra)

Arguments

spectra

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

Value

A data frame as follows. Note that if there are groups with no members 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. Spectra objects only.

alt.symbol

The alternative symbol assigned to the group. Spectra objects only.

Author(s)

Bryan A. Hanson, DePauw University.

See Also

To summarize the entire object, sumSpectra.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
if (checkForPackageWithVersion("ChemoSpec", "5.1")) {
  library("ChemoSpec")
  data(SrE.IR)
  sumGroups(SrE.IR)
}

if (checkForPackageWithVersion("ChemoSpec2D", "0.3")) {
  library("ChemoSpec2D")
  data(MUD1)
  sumGroups(MUD1)
}

ChemoSpecUtils documentation built on March 16, 2021, 1:08 a.m.