View source: R/match_week_xts.r
match_week_xts | R Documentation |
Create an indicator variable for a specific week.
match_week_xts(x_week, week_number, return_xts = FALSE)
x_week |
Numeric xts object with week of each observation. |
week_number |
Numeric scalar; Week of the year to match. |
return_xts |
Logical scalar; return matrix as an |
An indicator variable where the observation that matches the week entered = 1, 0 otherwise.
xmas_w53_xts <- match_week_xts(ic_week_xts, 53)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.