eom: The end of month date

Description Usage Arguments Value Examples

Description

The dates are rounded to the end of their respective months.

Usage

1
eom(dates)

Arguments

dates

a vector of dates.

Value

a date vector with the same class as dates

Examples

1
2
library("lubridate")
eom(ymd(20120203, 20140203))

Example output

Attaching package: 'lubridate'

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

    date

[1] "2012-02-29" "2014-02-28"

fmdates documentation built on May 1, 2019, 10:10 p.m.