View source: R/monthFunctions.R
monthIndex | R Documentation |
Given a date or a year/month combination, return the number of months since Jan 1, 1970.
monthIndex(x, ...)
## S3 method for class 'Date'
monthIndex(x)
## S3 method for class 'POSIXlt'
monthIndex(x)
## S3 method for class 'integer'
monthIndex(year, month)
## S3 method for class 'numeric'
monthIndex(year, month)
## S3 method for class 'yearmon'
monthIndex(x)
monthIndexToDate(mi)
x |
Method dependent |
A serial integer for the month
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.