Learn R Programming

timeDate (version 4041.110)

dayOfWeek: Day of the week

Description

Returns the days of the week of the data in a "timeDate" object.

Usage

dayOfWeek(x)

Value

a character vector giving the days of the week corresponding to the elements of x. The names are in English, abbreviated to three letters.

Arguments

x

an object of class "timeDate".

See Also

dayOfYear

Examples

Run this code
## timeCalendar
tC <- timeCalendar(2022)
       
## the days of the year
dayOfWeek(tC)

Run the code above in your browser using DataLab