as.mondate: As.Mondate Method

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/mondate.r

Description

Coerce an object to class mondate.

Usage

1

Arguments

x

an R object.

...

optional arguments passed to other methods.

Details

This is a convenience function that simply calls the appropriate mondate conversion method depending on the class of x.

Value

A mondate if coersion is successful.

Author(s)

Dan Murphy

See Also

mondate-methods

Examples

1
2
y <- as.Date("2012-12-31")
as.mondate(y)

Example output

Attaching package: 'mondate'

The following object is masked from 'package:base':

    as.difftime

mondate: timeunits="months"
[1] 2012-12-31

mondate documentation built on Jan. 29, 2021, 5:06 p.m.

Related to as.mondate in mondate...