View source: R/add_model_preds.R
get_component_predictions | R Documentation |
Get component predictions
get_component_predictions(
tidied,
data,
temp_col = "Temperature_norm",
rescale_temp_col = TRUE,
...
)
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. |
the data tibble, with additional rows corresponding to the reconstructed component.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.