expand_date: Expand date columns into year, month, day, hour, minute.

View source: R/expand_date.R

expand_dateR Documentation

Expand date columns into year, month, day, hour, minute.

Description

Expand date columns into year, month, day, hour, minute.

Usage

expand_date(.fcst, date_col)

Arguments

.fcst

A harp_fcst object or a data frame with a column with the string 'date' in its name.

date_col

The unquoted name of the date column that you wish to expand.

Value

An object of the same type as '.fcst' with extra columns for year, month, day, hour, minute. The extra colun names are prefixed with 'date_col' with the string 'date' removed.


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