Spectra can be conformed to a standard suite of wavenumbers to be compared with a reference library or to be merged to other spectra.
conform_spec(x, ...)# S3 method for default
conform_spec(x, ...)
# S3 method for OpenSpecy
conform_spec(x, range = NULL, res = 5, allow_na = F, type = "interp", ...)
adj_intens()
returns a data frame containing two columns
named "wavenumber"
and "intensity"
a list object of class OpenSpecy
.
a vector of new wavenumber values, can be just supplied as a min and max value.
spectral resolution adjusted to or NULL
if the raw range
should be used.
logical; should NA values in places beyond the wavenumbers of the dataset be allowed?
the type of wavenumber adjustment to make. "interp"
results in linear interpolation while "roll"
conducts a nearest
rolling join of the wavenumbers. "mean_up"
only works when
Spectra are being aggregated, we take the mean of the intensities within the
wavenumber specified. This can maintain smaller peaks and make spectra more
similar to it's less resolved relatives. mean_up option is still experimental.
further arguments passed to approx()
Win Cowger, Zacharias Steinmetz
restrict_range()
and flatten_range()
for
adjusting wavenumber ranges;
subtr_baseline()
for spectral background correction
data("raman_hdpe")
conform_spec(raman_hdpe, c(1000, 2000))
Run the code above in your browser using DataLab