weekday_code {clock} | R Documentation |
weekday_code()
extracts out the integer code for the weekday.
weekday_code(x, ..., encoding = "western")
x |
A weekday vector. |
... |
These dots are for future extensions and must be empty. |
encoding |
One of:
|
An integer vector of codes.
# Here we supply a western encoding to `weekday()` x <- weekday(1:7) x # We can extract out the codes using different encodings weekday_code(x, encoding = "western") weekday_code(x, encoding = "iso")