ensure_model_column: Assure that data has a 'model' column

View source: R/check-input-helpers.R

ensure_model_columnR Documentation

Assure that data has a model column

Description

Check whether the data.table has a column called model. If not, a column called model is added with the value ⁠Unspecified model⁠.

Usage

ensure_model_column(data)

Arguments

data

A data.frame (or similar) with predicted and observed values. See the details section of as_forecast() for additional information on required input formats.

Value

The data.table with a column called model


epiforecasts/scoringutils documentation built on April 23, 2024, 4:56 p.m.