Description Usage Arguments Value Author(s) See Also Examples
Pads a vector of dates to a specified length.
1 | ExtendTime(dates, number.of.periods, dt = NULL)
|
dates |
An ordered vector of class |
number.of.periods |
The desired length of the output. |
dt |
A character string describing the frequency of the dates in
|
If number.of.periods is longer than length(dates), then
dates will be padded to the desired length. Extra dates are
added at time intervals matching the average interval in
dates. Thus they may not be
Steven L. Scott steve.the.bayesian@gmail.com
1 2 3 4 5 6 | origin.month <- as.Date("2011-09-01")
week.ending <- as.Date(c("2011-10-01", ## 1
"2011-10-08", ## 2
"2011-12-03", ## 3
"2011-12-31")) ## 4
MatchWeekToMonth(week.ending, origin.month) == 1:4
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.