standardize_forecast: Transform older (v0.4) standard to current standard

View source: R/standardize_forecast.R

standardize_forecastR Documentation

Transform older (v0.4) standard to current standard

Description

Transform older (v0.4) standard to current standard

Usage

standardize_forecast(
  df,
  filename = NULL,
  reference_datetime_format = "%Y-%m-%d"
)

Arguments

df

a forecast data.frame

filename

filename, which might be parsed to extract reference_datetime and model_id. Optional.

reference_datetime_format,

date or datetime format of reference_time, default to "%Y-%m-%d" model_id and reference_datetime may be omitted if they are supplied in the filename. If these columns exist, then filename is ignored.

Details

Current standard should have columns:

  • model_id

  • reference_datetime

  • site_id

  • variable

  • datetime

  • family

  • parameter

  • prediction

This function does not handle un-pivoted (v0.3) forecast, see pivot_forecast()


eco4cast/score4cast documentation built on Nov. 21, 2023, 12:25 p.m.