Construct a class based on a data.frame or similar. The constructor
coerces the data into a data.table
assigns a class
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.- classname
name of the class to be created