Returns the index of a month, in a sequence of months, that contains a given week.
A vector of class
The index of the month matching the month containing the first
week.ending. The origin is month 1. It is the caller's
responsibility to ensure that these indices correspond to legal values
in a particular vector of months.
Steven L. Scott email@example.com
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.