as_messydate: Coercion to messy dates

Description Usage Arguments Value Methods (by class) Examples

View source: R/coerce_to_messydate.R

Description

These functions coerce different data classes into messydt class

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
as_messydate(x)

## S3 method for class 'Date'
as_messydate(x)

## S3 method for class 'POSIXct'
as_messydate(x)

## S3 method for class 'POSIXlt'
as_messydate(x)

## S3 method for class 'character'
as_messydate(x)

Arguments

x

A scalar or vector of a class that can be coerced into a Date, such as Date, POSIXct, POSIXlt, or character.

Value

A messydt class object

Methods (by class)

Examples

1
2
3
4
5
6
7
8
9
as_messydate("28 BC")
as_messydate("2021")
as_messydate("2021-02")
as_messydate("2021-02-01")
as_messydate("2021-02-01?")
as_messydate("2021-02-01~")
as_messydate("2021-02-01%")
as_messydate("2021-02-01..2021-02-28")
as_messydate("{2021-02-01,2021-02-28}")

messydates documentation built on Nov. 12, 2021, 5:06 p.m.