as_yrmon: Convert an object to a yrmon

Description Usage Arguments Examples

View source: R/yrmon.R

Description

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
as_yrmon(x, ...)

## Default S3 method:
as_yrmon(x, ...)

## S3 method for class 'yrmon'
as_yrmon(x, ...)

## S3 method for class 'Date'
as_yrmon(x, ...)

## S3 method for class 'POSIXt'
as_yrmon(x, ...)

## S3 method for class 'character'
as_yrmon(x, ...)

## S3 method for class 'factor'
as_yrmon(x, ...)

Arguments

x

'An object to coerce to yrmon.

...

Not used.

Examples

1
2
3
as_yrmon(Sys.Date())
as_yrmon(as.POSIXct("2019-03-04 01:01:01", tz = "America/New_York"))
as_yrmon("2019-05-03")

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