The function makes it possible to silently validate an object. In addition, it can return a copy of the data and remove rows with missing values.
clean_forecast(forecast, copy = FALSE, na.omit = FALSE)
A forecast object (a validated data.table with predicted and observed values).
Logical, default is FALSE
. If TRUE
, a copy of the input data
is created.
Logical, default is FALSE
. If TRUE
, rows with missing
values are removed.