Description Usage Arguments Examples
Date, POSIXct, and POSIXlt are converted directly. Any day, hour, minute,
or second components are dropped. POSIXct and POSIXlt are converted to
dates via as.date()
with the timezone respected.
Character input is assumed to be provided in either ISO 8601 standard format, i.e. "yyyy-mm-dd".
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | as_yrqtr(x, ...)
## Default S3 method:
as_yrqtr(x, ...)
## S3 method for class 'yrqtr'
as_yrqtr(x, ...)
## S3 method for class 'yrmon'
as_yrqtr(x, ...)
## S3 method for class 'Date'
as_yrqtr(x, ...)
## S3 method for class 'POSIXlt'
as_yrqtr(x, ...)
## S3 method for class 'POSIXct'
as_yrqtr(x, ...)
## S3 method for class 'character'
as_yrqtr(x, ...)
## S3 method for class 'factor'
as_yrqtr(x, ...)
|
x |
'An object to coerce to yrqtr. |
... |
Not used. |
1 2 3 | as_yrqtr(Sys.Date())
as_yrqtr(as.POSIXct("2019-03-04 01:01:01", tz = "America/New_York"))
as_yrqtr("2019-05-03")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.