region.remove {RamanMP} | R Documentation |
Removal of spectral region
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
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
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)
[Package RamanMP version 1.0 Index]