Debian Codegraph @

man/ISOweekday.Rd

raw
1 \name{ISOweekday}
2 \alias{ISOweekday}
3 \title{Day of week according to ISO 8601}
4 \usage{
5 ISOweekday(date)
6 }
7 \arguments{
8 \item{date}{Vector which can be coerced to class
9 \code{Date}}
10 }
11 \value{
12 An integer vector of weekdays (1-7, Monday is 1)
13 }
14 \description{
15 This function returns the weekday of a given date
16 according to ISO 8601. It is an substitute for the
17 "\code{\%u}" format which is not implemented on Windows.
18 }
19 \examples{
20 x <- paste(1999:2011, "-12-31", sep = "")
21 y <- as.Date(x)
22 data.frame(date = format(y), weekday = ISOweekday(y))
23 data.frame(date = x, weekday = ISOweekday(x))
24 }
25 \author{
26 Uwe Block \email{[email protected]}
27 }
28 \seealso{
29 \code{\link{strptime}}
30 }
31