Learn R Programming

scoringutils (version 1.2.2)

find_duplicates: 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)

Value

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

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.

Examples

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

Run the code above in your browser using DataLab