Description Usage Arguments Value Examples
Check if date input is a weekend or not
| 1 2 3 | is_weekend(x, wday = 1:5)
is_weekday(x, wday = 1:5)
 | 
| x | date input | 
| wday | weekday index | 
TRUE or FALSE
| 1 2 3 | dt <- as.Date(c("2016-01-01","2016-01-02","2016-01-03"))
is_weekend(dt)
is_weekday(dt)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.