Learn R Programming

dttr2 (version 0.5.2)

dtt_wday: Get Week Day

Description

Gets the week days for the locale.

Usage

dtt_wday(x, abbr = FALSE, ...)

# S3 method for default dtt_wday(x, abbr = FALSE, ...)

Value

An character vector of the week days.

Arguments

x

A date/time vector.

abbr

A flag specifying whether to abbreviate the week days.

...

Unused.

Methods (by class)

  • dtt_wday(default): Get character vector of week days for a Date vector

Examples

Run this code
x <- as.Date("1990-01-02")
dtt_wday(x)

x <- as.POSIXct("1990-01-02 23:40:51")
dtt_wday(x, abbr = TRUE)

Run the code above in your browser using DataLab