Description Usage Arguments Value Author(s) Examples
rptDate.offset
1 | rptDate.offset(rptDate, by, freq)
|
rptDate |
a vector of rptDate , with class Date. |
by |
a vector of integer |
freq |
charactor string: "y" or "q". |
a vector or a dataframe according to the length of rptDate and by.
Ruifei.Yin
1 2 3 4 5 6 7 8 9 | # multi rptDate and 1 by:
rptDate.offset(as.Date(c("2016-03-31","2016-06-30","2016-09-30")),-1,"q")
rptDate.qoq(as.Date(c("2016-03-31","2016-06-30","2016-09-30")))
rptDate.offset(as.Date(c("2016-03-31","2016-06-30","2016-09-30")),-1,"y")
rptDate.yoy(as.Date(c("2016-03-31","2016-06-30","2016-09-30")))
# 1 rptDate and multi by:
rptDate.offset(as.Date("2016-03-31"),-2:0,"q")
# multi rptDate and multi by:
rptDate.offset(as.Date(c("2016-03-31","2016-06-30","2016-09-30")),-2:0,"q")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.