get_component_predictions: Get component predictions

View source: R/add_model_preds.R

get_component_predictionsR Documentation

Get component predictions

Description

Get component predictions

Usage

get_component_predictions(
  tidied,
  data,
  temp_col = "Temperature_norm",
  rescale_temp_col = TRUE,
  ...
)

Arguments

tidied

a tibble resulting from annotate_tidied_components

data

a tibble of dsf data, resulting from drop_and_pivot, to which component predictions will be added.

temp_col

a string, containing the name of the column in the dataframe supplied to the data argument, whch contains the x data used to fit the model. Defaults to Temperature_norm. If the original model was fit to Temperature_norm, this must also be Temperature_norm–it cannot be "Temperature"

rescale_temp_col

boolean, that, if true, triggers the rescaling of the input Temperautre column to a 0 to 1 range.

...

additional parameters passed to downstream functions or ignored.

Value

the data tibble, with additional rows corresponding to the reconstructed component.


taiawu/dsfworld_package documentation built on June 18, 2024, 5:39 a.m.