getDayOfWeek {fCalendar}R Documentation

The Day of the Week

Description

Returns the day of the week or the day of the week.

getDayOfWeek Returns the day of the week to a 'timeDate' object,
getDayOfYear Returns the day of the year to a 'timeDate' object.

Usage

getDayOfWeek(x)
getDayOfYear(x)

Arguments

x an object of class timeDate.

Value

the function getDayOfWeek returns a three letter character string with the names of the day of the week, and the function getDayOfYear returns the day count as integer value starting January, 1st.

See Also

timeDate

Examples

  
## Dates in April, currentYear: 
   tS = timeSequence(
      from = paste(currentYear, "-03-01", sep = ""),
      to = paste(currentYear, "-04-30", sep = ""))
   tS
       
## Subset Wednesdays:
   getDayOfWeek(tS)
   tS[getDayOfWeek(tS) == "Wed"]

[Package fCalendar version 262.73 Index]