gather_members: Convert EPS forecast data from wide format data frame to long...

View source: R/gather_members.R

gather_membersR Documentation

Convert EPS forecast data from wide format data frame to long format data frame.

Description

Convert EPS forecast data from wide format data frame to long format data frame.

Usage

gather_members(
  .fcst,
  member_regex = "_mbr[[:digit:]]+$|_mbr[[:digit:]]+_lag[[:graph:]]*$"
)

Arguments

.fcst

An EPS forecast data frame in wide format.

member_prefix

Prefix for column names that contain forcasts for a single member. The default is "mbr". Note that the column name only has to contain member_prefix.

Value

An EPS data frame in long format.


andrew-MET/harpPoint documentation built on Feb. 23, 2023, 1:06 a.m.