Get NBER recession dates that line up with data in the data frame

get_recessions(data)

Arguments

data

Data frame with a time series

Value

A copy of the data frame, `data`, with a new variable `Recession` equal to TRUE or FALSE if there was a recession in the time period