time_slice: Select certain time period of dataframe

Description Usage Arguments Details Author(s) Examples

View source: R/time_slice.R

Description

This function allows you to select certain time period of dataframe and reset to default rownames

Usage

1
time_slice(df, start_date, end_date)

Arguments

df

portfolio dataframe

start_date

start date of the time period, character

end_date

end date of the time period, character

Details

The first column of dataframe should be date column. The function includes end date and excludes start date

Author(s)

Alfred

Examples

1
time_slice(df, "2011-12-31", "2017-05-31")

Alfred-Zhang/ResearchTools documentation built on Nov. 23, 2017, 1:54 a.m.