powered by
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.
region.remove(spectra, min.region, max.region)
A dataframe/matrix with frequency values as first column and at least one column with intensity values.
Numeric. Minimum frequency value of the region that should be removed.
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.
# NOT RUN { 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) # }
Run the code above in your browser using DataLab