dt_trim: Trim a data frame

Description Usage Arguments Value

Description

The data frame X is a time series data set with dates reaching back as far as the 1860s. This function will trim that data set to the desired duration of time

Usage

1
dt_trim(X, mindate = NULL, maxdate = NULL)

Arguments

X

is a time series containing a macroeconomic time series

mindate

is a character variable representing the date the user wants the time series to start, if the data allows this start date.

maxdate

is a character variable representing the date the user wants the time series to end, if the data allows this end date.

Value

A dataframe is returned containing only data between the specified dates.


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