Learn R Programming

ChemoSpecUtils (version 1.0.5)

.remGrpSam: Remove Groups or Samples from a Spectra or Spectra2D Object

Description

Internal function.

Usage

.remGrpSam(spectra, kill, group = TRUE)

Value

An object of S3 class ChemoSpec::Spectra() or ChemoSpec2D::Spectra2D().

Arguments

spectra

An object of S3 class ChemoSpec::Spectra() or ChemoSpec2D::Spectra2D().

kill

A vector of character strings giving a regex pattern to be applied to the sample or group names. If group = FALSE can also be an integer vector giving the samples to be removed.

group

Logical. TRUE means we are removing groups. FALSE means we are removing samples.

Author

Bryan A. Hanson (DePauw University).