week.ends {bsts} | R Documentation |
Returns a logical vector indicating whether the given week contains the end of a month or quarter.
WeekEndsMonth(week.ending) WeekEndsQuarter(week.ending)
week.ending |
A vector of class |
A logical vector indicating whether the given week contains the end of a month or a quarter.
Steven L. Scott steve.the.bayesian@gmail.com
week.ending <- as.Date(c("2011-10-01", "2011-10-08", "2011-12-03", "2011-12-31")) WeekEndsMonth(week.ending) == c(TRUE, FALSE, TRUE, TRUE) WeekEndsQuarter(week.ending) == c(TRUE, FALSE, FALSE, TRUE)