Description Usage Arguments Value Author(s) See Also Examples
View source: R/fct01_frameBuildingFuncs.R
get the rebalance dates(a RebDates object) between begT and endT, and then shift it foreward if necessary.
1 | getRebDates(begT, endT, rebFreq = "month", shiftby = 0, dates = NULL)
|
begT |
the begin date of class Date |
endT |
the end date of class Date |
rebFreq |
the rebalancing freq. an interval specification, one of "day", "week", "month", "quarter" and "year", optionally preceded by an integer and a space, or followed by "s". (See |
shiftby |
a integer,how many days the rebalancing date be shifted foreward |
dates |
a vector of class Date. |
a RebDates object giving the rebalancing dates list,a vector with class of Date
. If dates is not null, then return the dates themselves.
Ruifei.Yin
Other frame building functions: getTSF
,
getTSR
, getTS
1 2 3 4 | RebDates <- getRebDates(as.Date('2010-01-01'),as.Date('2012-06-30'),'3 month', 10)
getRebDates(as.Date('2010-01-01'),as.Date('2012-06-30'),'allspan')
getRebDates(as.Date('2010-01-01'),as.Date('2012-06-30'),'100 year')
getRebDates(dates=as.Date(c("2003-04-09","2003-07-06","2003-09-12")))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.