match_date | R Documentation |
Create an indicator variables for a specific date (year, month, day) for a weekly time series as defined in tis
.
match_date(x, date_string)
x |
Numeric tis object. |
date_string |
Character string; Year, month and day of the date (Example - January 1, 1990 is '19900101'). |
An indicator variable where the week contains the date entered = 1, 0 otherwise.
pandemic_start <- match_date(ic_week, '20200317')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.