is_weekend | R Documentation |
Is x a weekend?
is_weekend(x)
x |
a POSIXct, POSIXlt, Date, chron, yearmon, yearqtr, zoo, zooreg, timeDate, xts, its, ti, jul, timeSeries, or fts object. |
boolean indicating whether x is a weekend
is_weekend("2017-08-29") # FALSE is_weekend("2017-09-02") # TRUE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.