ym: Representative Dates as the first day in the period

Description Usage Arguments Details Value See Also Examples

View source: R/ym.R

Description

Represent a data as the first day of the month of an interval.

Usage

1
ym(x, ...)

Arguments

x

vector; values that represent months in ym form

...

arguments passed to ymd

Details

Parses a ym date string by setting the date/time to the first moment of the month. If x is already a POSIX date, floor_month(x) is performed.

Value

POSIXct

See Also

yday

Examples

1
2
  months <- c('200101','200102', '200103' )
  ym(months)

decisionpatterns/lubridate.tools documentation built on July 30, 2020, 4:24 a.m.