Description Usage Arguments Details Value Author(s) Examples
View source: R/WindowSelection.R
Selects an interval in the ppm scale and returns the value of the spectra in that interval.
1 | WindowSelection(Spectrum_data, from.ws = 10, to.ws = 0.2, verbose = FALSE)
|
Spectrum_data |
Matrix containing the spectra in ppm, one row per spectrum. |
from.ws |
The left ppm value of the interval. A typical value is 10. If NULL, default value is the first index without NA. |
to.ws |
The right ppm value of the interval. A typical value is 0.2. If NULL, default value is the last index without NA. |
verbose |
If |
If from.ws
and/or to.ws
are not specified we calculate it so that we have the largest window without NA.
Those NAs are typically produced by the InternalReferencing
function.
Spectrum_data |
The matrix of the value of the spectra in the specified interval. |
BenoƮt Legat & Manon Martin
1 2 3 4 5 6 | require(PepsNMRData)
# The interval is chosen so that we have the largest interval without NA
Ws.spec <- WindowSelection(Data_HS_sp$Spectrum_data_HS_9)
# or
Ws.spec <- WindowSelection(Data_HS_sp$Spectrum_data_HS_9, from.ws=10, to.ws=0.2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.