View source: R/plot-spc-extended.R
merge_dts | R Documentation |
Helper function that merges all spectra and related data into a single long form data.table than can subsequently be used for plotting.
merge_dts(
spc_tbl,
lcols_spc = c("spc", "spc_pre"),
lcol_measure = NULL,
spc_id = "unique_id",
group_id = "sample_id"
)
spc_tbl |
Tibble data frame containing spectra, x-axis values, metadata and eventual measured variables as list-columns. |
lcols_spc |
Character vector of spectral list-columns to be extracted.
Default is |
lcol_measure |
Character vector of length 1 denoting the column name
of the measure columns. This argument is optional. Default is |
spc_id |
Character vector of column that contains a unique spectral
identifier for all spectra. Default is |
group_id |
Character vector of columns that is used assigning spectra
into groups. Default is |
A single data.table containing long form aggregated data of spectra, x-axis values, metadata and an additionally measured variable.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.