View source: R/monthFunctions.R View source: R/datePartFactors.R
monthFactor | R Documentation |
Given a zoo or xts object, return a month factor based on the index. Factor levels are Jan, Feb, Mar, ...
monthFactor(x, ...)
monthFactor(x, ...)
## S3 method for class 'Date'
monthFactor(d)
## S3 method for class 'zoo'
monthFactor(z)
## S3 method for class 'character'
monthFactor(ch)
## S3 method for class 'yearmon'
monthFactor(ym)
z |
The zoo or xts object |
TODO: Really, there should be monthFactor.zoo, monthFactor.xts, monthFactor.Date, monthFactor.character, monthFactor.integer, etc.
A factor
Factor with levels Jan, Feb, Mar, ...
months
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.