as_yrqtr: Convert an object to a yrqtr

Description Usage Arguments Examples

View source: R/yrqtr.R

Description

Usage

 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, ...)

Arguments

x

'An object to coerce to yrqtr.

...

Not used.

Examples

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")

tjtnew/grates documentation built on Feb. 6, 2021, 6:12 p.m.