PadNAs: Pad Time Series wit NA's

Description Usage Arguments Value Examples

View source: R/data_fxns.R

Description

The function PadNAs takes a single identifier time-series dataframe from a 'data' DICE structure and add dates through 'end.date'. This function is generally called by get.mysql() to add forecast dates beyond the last climate data point.

Usage

1
PadNAs(ident_data = NULL, cadence = NULL, end.date = NULL, nmod = NULL)

Arguments

ident_data

A dataframe from 'mydata' for a single identifier's time-series mydata.

cadence

An integer that specifies incidence cadence.

end.date

A Date class variable specifying the last date to be forecast.

Value

ident_data The same mydataframe, but with added cadence periods until 'end.date'.

Examples

1

predsci/DICE documentation built on Aug. 9, 2019, 9:41 a.m.