genEVtime: Generates a vector of Eviews date formatted strings...

Description Usage Arguments Details Examples

View source: R/genEVtime.R

Description

Function to generate an Eviews-formatted vector of strings with time references.

Usage

1
genEVtime(start, end = NULL, qobs = NULL)

Arguments

start

String with the starting date formatted as "2000M12" or "2002Q4".

end

String with the ending date, uses the same format as start. Optional if qobs specified. Defaults to NULL.

qobs

Number of observations. Optional if end specified. Defaults to NULL.

Details

Eviews formats dates of regularly spaced time series as YYYYPSS where YYYY is the year, P is the period (Month,Quarter) and SS is the subperiod (eg.1 to 12 for months)

Examples

1
2
3
genEVtime("1973Y1","1975Y1") # yeap, must explicit "Y1"
genEVtime("1947q3","1948Q02") # note the 0 before 2 is optional
genEVtime("1947M1",qobs=6) #

fcbarbi/macroR documentation built on May 14, 2017, 12:14 a.m.