dot-remGrpSam: Remove Groups or Samples from a Spectra or Spectra2D Object

.remGrpSamR Documentation

Remove Groups or Samples from a Spectra or Spectra2D Object

Description

Internal function.

Usage

.remGrpSam(spectra, kill, group = TRUE)

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.

Value

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

Author(s)

Bryan A. Hanson (DePauw University).


ChemoSpecUtils documentation built on May 29, 2024, 3:12 a.m.