Description Usage Arguments Value Examples
View source: R/region.remove.R
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.
1 | region.remove(spectra, min.region, max.region)
|
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. |
Return the spectra with the removed region. The rows corresponding to the range specified are removed.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.