Append predictions for a set of responses specified by a list of calibration models and a tibble containing preprocessed spectra as list-columns.

predict_from_spc(model_list, spc_tbl, slice = TRUE)

Arguments

model_list

List of model output generated from calibration step (pls_ken_stone()

spc_tbl

Tibble of spectra after preprocessing (preprocess_spc())

slice

Logical expression wheather only one row per sample_id returned.

Value

tibble with new columns model, and predicted values with column names of model list.