print.forecast_binary: Print information about a forecast object

View source: R/print.R

print.forecast_binaryR Documentation

Print information about a forecast object

Description

This function prints information about a forecast object, including "Forecast type", "Score columns", "Forecast unit".

Usage

## S3 method for class 'forecast_binary'
print(x, ...)

## S3 method for class 'forecast_quantile'
print(x, ...)

## S3 method for class 'forecast_point'
print(x, ...)

## S3 method for class 'forecast_sample'
print(x, ...)

Arguments

x

A forecast object (a validated data.table with predicted and observed values, see as_forecast()).

...

Additional arguments for print().

Value

Returns x invisibly.

Examples

dat <- as_forecast(example_quantile)
print(dat)

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