Bind one to many list-columns in spectral tibble into a list of data.tables.

bind_lcols_dts(spc_tbl, lcols, spc_id = "unique_id", group_id = "sample_id")

Arguments

spc_tbl

Spectral data in a tibble data frame (classes "tibble_df", "tbl" and "data.frame").

lcols

Character vector of column names of list-columns to be bound into a list of data.tables

spc_id

Character vector denoting column name for a unique spectrum ID. Default is "unique_id".

group_id

Character vector denoting column name for the spectrum group ID. Default is "sample_id". The group ID can later be used for plotting spectra by group (e.g. by using different colors or panels).

Value

A list of data.tables. Elements contain data from list-columns specified in lcols argument as data.tables. All data.tables contain in addition spc_id and group_id columns.