| as_metabodecon_class | R Documentation |
Convert a object to a Metabodecon object.
as_spectrum(x, sf = c(1000, 1e+06))
as_decon0(x, sf = NULL, spectrum = NULL, optional = TRUE)
as_decon1(
x,
sf = c(1000, 1e+06),
spectrum = NULL,
sfr = NULL,
wshw = NULL,
bwc = 2
)
as_decon2(
x,
sf = c(1000, 1e+06),
spectrum = NULL,
sfr = NULL,
wshw = NULL,
bwc = 2
)
as_spectra(
x,
file_format = "bruker",
expno = 10,
procno = 10,
raw = FALSE,
silent = TRUE,
force = FALSE
)
as_decons0(x, sfs = list(c(1000, 1e+06)), spectra = list(NULL), nworkers = 1)
as_decons1(
x,
sfs = list(c(1000, 1e+06)),
spectra = list(NULL),
sfrs = list(NULL),
wshws = list(NULL),
bwc = 2,
nworkers = 1
)
as_decons2(
x,
sfs = list(c(1000, 1e+06)),
spectra = list(NULL),
sfrs = list(NULL),
wshws = list(NULL),
bwc = 2,
nworkers = 1
)
x |
The object to convert. |
sf |
Scale factor used during Only required if |
spectrum, spectra |
The |
optional |
Logical. If |
sfr, sfrs |
|
wshw, wshws |
|
bwc |
Level of backwards compatibility. If |
file_format |
The file_format of the spectrum file. E.g. |
expno, procno |
The experiment/processing number for the file. E.g. |
raw |
If |
silent |
If |
force |
If |
sfs |
List of scale factors. Only required if |
nworkers |
Number of workers for parallel processing. |
An object of the specified class.
2024-2025 Tobias Schmidt: initial version.
dirpath <- metabodecon_file("sim_subset")
spectra <- read_spectra(dirpath)
spectrum <- spectra[[1]]
decons1 <- generate_lorentz_curves_sim(spectra)
decon1 <- generate_lorentz_curves_sim(spectrum)
decon2 <- as_decon2(decon1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.