View source: R/monthFunctions.R
monthNumber | R Documentation |
Convert month in character format to integer (1, ..., 12)
monthNumber(x, ...)
## Default S3 method:
monthNumber(x)
## S3 method for class 'integer'
monthNumber(x)
## S3 method for class 'numeric'
monthNumber(x)
## S3 method for class 'character'
monthNumber(s)
## S3 method for class 'Date'
monthNumber(d)
## S3 method for class 'yearmon'
monthNumber(d)
x |
Can be a number (1, ..., 12), name ("jan", "feb", ...), futures month code ("F", "G", "H", ...), Date, or yearmon. Case is ignored for character arguments. |
Month number (1L, ..., 12L)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.