Description Usage Arguments Examples
Date, POSIXct, and POSIXlt are converted directly by extracting the year
and month from x
. Any day, hour, minute, or second components are
dropped. Time zone information is not retained.
Integer and double input are assumed to be the number of months since the Unix origin of 1970-01-01.
Character input is assumed to be provided in a format containing only
information about the year and month, such as "1970-01"
or "Jan 1970"
.
It is parsed using the defaults of ymon_parse()
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | as_ymon(x, ...)
## S3 method for class 'Date'
as_ymon(x, ...)
## S3 method for class 'POSIXct'
as_ymon(x, ...)
## S3 method for class 'POSIXlt'
as_ymon(x, ...)
## S3 method for class 'integer'
as_ymon(x, ...)
## S3 method for class 'double'
as_ymon(x, ...)
## S3 method for class 'character'
as_ymon(x, ...)
|
x |
An object to coerce to ymon. |
... |
Not used. |
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.