Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

sumGroups

Summarize the Group Membership of a Spectra or Spectra2D Object


Description

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

Usage

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

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

Functions Supporting Packages ChemoSpec and ChemoSpec2D

v0.4.96
GPL-3
Authors
Bryan A. Hanson [aut, cre] (<https://orcid.org/0000-0003-3536-8246>)
Initial release
2021-03-15

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.