groomdata: Create recession markers

Description Usage Arguments Value

Description

This function requires two dataframes as input. With the input this function trims the B dataframe to the same start date as the A dataframe.

Usage

1
groomdata(A, B, level)

Arguments

A

is a dataframe of macroeconomic data created by the ME_dtaextract function and has be trimmed using the ME_growth function (or not).

B

is a dataframe created by the ME_Rec function.

level

is a logical variable specifying if the level data should be matched to the recession data or if the growth rate data should be matched to the recession data.

Value

A data frame of recession markers the same length as the input dataframe A is returned. This dataframe is now ready to be plotted in the same.


greegreg/AdvancedR documentation built on May 24, 2019, 4:05 a.m.