dtt_wday {dttr2} | R Documentation |
Get Week Day
Description
Gets the week days for the locale.
Usage
dtt_wday(x, abbr = FALSE, ...)
## Default S3 method:
dtt_wday(x, abbr = FALSE, ...)
Arguments
x |
A date/time vector. |
abbr |
A flag specifying whether to abbreviate the week days. |
... |
Unused. |
Value
An character vector of the week days.
Methods (by class)
-
dtt_wday(default)
: Get character vector of week days for a Date vector
Examples
x <- as.Date("1990-01-02")
dtt_wday(x)
x <- as.POSIXct("1990-01-02 23:40:51")
dtt_wday(x, abbr = TRUE)
[Package dttr2 version 0.5.0 Index]