Description Usage Arguments Details Value Author(s) See Also Examples
Returns the weekday of a given date according to ISO 8601.
It is an alternative to strftime(x, "%u")
.
1 |
date |
vector which can be coerced to class |
The conversion specifications %g
, %G
, %V
, %u
where not available on Windows and MacOS before R 3.1.0
.
An integer vector of weekdays (1-7, Monday is 1)
Uwe Block u.block.mz@gmail.com
1 2 3 4 | x <- paste(1999:2011, "-12-31", sep = "")
y <- as.Date(x)
data.frame(date = format(y), weekday = ISOweekday(y))
data.frame(date = x, weekday = ISOweekday(x))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.