days

0th

Percentile

Return Various Periods from a Chron or Dates Object

Usage
days(x)
weekdays(x, abb = TRUE)
months(x, abb = TRUE)
quarters(x, abb = TRUE)
years(x)
Arguments
x
a dates object.
abb
should abbreviated names be returned? Default is TRUE.
Value

  • an ordered factor corresponding to days, weekdays, months, quarters, or years of x for the respective function.

See Also

is.weekend, is.holiday

Aliases
  • days
  • months
  • quarters
  • weekdays
  • years
Examples
dts <- dates("07/01/78") + trunc(50 * rnorm(30))
plot(weekdays(dts))
plot(months(dts))
Documentation reproduced from package chron, version 2.1-7, License: Copyright (c) 1997 Lucent Technologies. See the file `COPYING' for further information.

Community examples

Looks like there are no examples yet.