| get_si_mat | R Documentation |
Takes an object of type aligns, i.e., a list of deconvoluted and aligned
spectra, extracts the vector of aligned signal integrals for each spectrum
and returns them as a matrix with datapoints in rows and spectra in columns.
get_si_mat(x)
x |
An object of type |
A matrix of aligned signal intensities.
2024-2025 Tobias Schmidt: initial version.
if (interactive()) {
# Example requires an interactive R session, because in case of missing
# dependencies the user will be asked for confirmation to install them.
decons <- deconvolute(sim[1:2], sfr = c(3.55, 3.35))
aligns <- align(decons)
si_mat <- get_si_mat(aligns) # 2048 x 2 matrix (2048 datapoints, 2 spectra)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.