dtt_wday: Get Week Day

View source: R/wday.R

dtt_wdayR 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)

dttr2 documentation built on Sept. 26, 2024, 1:06 a.m.