View source: R/match_month_day_xts.r
match_month_day_xts | R Documentation |
Create an indicator variables for a specific month and day.
match_month_day_xts(x, date_string, return_xts = FALSE)
x |
Numeric xts object. |
date_string |
Character string; Month and day of the date (Example - January 1 is '0101'). |
return_xts |
Logical scalar; return matrix as an |
An indicator variable where the week that contains the date entered = 1, 0 otherwise.
july4_wed_xts <- match_month_day_xts(ic_week_xts, '0707')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.