View source: R/utils_data_handling.R
merge_pred_and_obs | R Documentation |
The function more or less provides a wrapper around merge
that
aims to handle the merging well if additional columns are present
in one or both data sets. If in doubt, you should probably merge the
data sets manually.
merge_pred_and_obs(
forecasts,
observations,
join = c("left", "full", "right"),
by = NULL
)
forecasts |
data.frame with the forecast data (as can be passed to
|
observations |
data.frame with the observations |
join |
character, one of |
by |
character vector that denotes the columns by which to merge. Any value that is not a column in observations will be removed. |
a data.frame with forecasts and observations
forecasts <- example_quantile_forecasts_only
observations <- example_truth_only
merge_pred_and_obs(forecasts, observations)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.