weekdays.zoo {quantmod} | R Documentation |
Extract the weekday, month or quarter. This documents the methods for the zoo class.
## S3 method for class 'zoo': weekdays(x,abbreviate=FALSE) ## S3 method for class 'zoo': months(x,abbreviate=FALSE) ## S3 method for class 'zoo': quarters(x,abbreviate=FALSE)
x |
a zoo object with index of class Date |
abbreviate |
logical. Should names be abbreviated? |
weekdays
and months
return a character vector of the
names.
quarters
returns a character vector of Q1
to Q4
Jeffrey A. Ryan
DateTimeClasses
, quarters
,
weekdays
, months
zoo.data <- zoo(rnorm(31)+10,as.Date(13514:13744,origin="1970-01-01")) weekdays(zoo.data) months(zoo.data) quarters(zoo.data)