Learn R Programming

timeDate (version 290.83)

dayOfWeek: Day of the Week

Description

returns the day of the year from a 'timeDate' object.

Usage

dayOfWeek(x)

Arguments

x
an object of class timeDate.

Value

  • returns a three letter character string with the names in English of the day of the week,

See Also

dayOfYear

Examples

Run this code
## timeCalendat -  
   tC = timeCalendar()
       
## The days of the Year:
   dayOfWeek(tC)
   
## Use Deprecated Function:
   getDayOfWeek <- dayOfWeek
   getDayOfWeek(tC)

Run the code above in your browser using DataLab