region.remove: Removal of spectral region

Description Usage Arguments Value Examples

View source: R/region.remove.R

Description

The function removes a spectral region of no interest for further analysis. The user must specify range values for the region that has to be removed.

Usage

1
region.remove(spectra, min.region, max.region)

Arguments

spectra

A dataframe/matrix with frequency values as first column and at least one column with intensity values.

min.region

Numeric. Minimum frequency value of the region that should be removed.

max.region

Numeric. Maximum frequency value of the region that should be removed.

Value

Return the spectra with the removed region. The rows corresponding to the range specified are removed.

Examples

1
2
3
data("MPdatabase")
new.spectrum<-region.remove(MPdatabase[,c(1,6)], min.region=500, max.region=1200)
new.spectra<-region.remove(MPdatabase, min.region=500, max.region=1200)

RamanMP documentation built on July 9, 2021, 9:07 a.m.