Description Usage Arguments Value Author(s) References Examples
This function accepts spectra, performs the desired transformations, and returns the results. The full list of available transformations is specified below under the parameter "transformation."
1 | preprocess(spec, transformation, MSC_reference = NULL)
|
spec |
An object of class |
transformation |
The desired transformation. Selected from: |
MSC_reference |
A reference used in MSC prepreocessing. If NULL, the mean spectra of the provided spectra is used. |
Returns an object of class spectra.matrix
. If MSC was
performed, the mean/reference spectra is returned as an attribute called
"MSC_reference."
Daniel M Griffith
Tomas Isaksson and Tormod N<c3><a6>s, "The Effect of Multiplicative Scatter Correction (MSC) and Linearity Improvement in NIR Spectroscopy," Appl. Spectrosc. 42, 1273-1284 (1988)
1 2 3 4 5 6 7 8 | ## Not run:
data(shootout)
processed_data <- preprocess(spec = shootout_scans, transformation = "COE")
par(mfrow=c(1,2))
plot(shootout_scans)
plot(processed_data)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.