find_duplicates: Find duplicate forecasts

View source: R/check_forecasts.R

find_duplicatesR Documentation

Find duplicate forecasts

Description

Helper function to identify duplicate forecasts, i.e. instances where there is more than one forecast for the same prediction target.

Usage

find_duplicates(data, forecast_unit, ...)

Arguments

data

A data.frame as used for score()

forecast_unit

A character vector with the column names that define the unit of a single forecast. If missing the function tries to infer the unit of a single forecast.

...

Additional arguments passed to get_forecast_unit().

Value

A data.frame with all rows for which a duplicate forecast was found

Examples

example <- rbind(example_quantile, example_quantile[1000:1010])
find_duplicates(example)

scoringutils documentation built on Feb. 16, 2023, 7:30 p.m.