predict_from_spc: Predict soil properties of new spectra based on a list of...

View source: R/predict-spc.R

predict_from_spcR Documentation

Predict soil properties of new spectra based on a list of calibration models

Description

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

Usage

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.


philipp-baumann/simplerspec documentation built on Oct. 3, 2023, 12:13 p.m.