Description Usage Arguments Value Author(s) Examples
View source: R/makeCompatible.R
This function accepts spectra as a spectra.list
or
spectra.matrix
object, and manipulates these spectra to conform to the
units, resolution, and extent of a reference dataset. The transformations
occur in the following order:
- Conversion between wavelength and wavenumber with convertSpectra()
.
- Conversion among absorbance, reflectance, transmittance values with convertSpectra()
.
- Resampling of spectra is done with approx()
, which performs a linear interpolation.
1 | makeCompatible(x, ref)
|
x |
An object of class |
ref |
An object of class |
Returns an object of class spectra.matrix
containing the modified spectra.
Daniel M Griffith
1 2 3 4 5 6 7 | ## Not run:
data(shootout)
reference <- convertSpectra(x = shootout_scans, method = "WL_to_WN")
reference <- reference[,1:100]
makeCompatible(x = shootout_scans, ref = reference)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.