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

eom(dates)

Arguments

dates

a vector of dates.

Value

a date vector with the same class as dates

Examples

library("lubridate")
#> #> Attaching package: ‘lubridate’
#> The following object is masked from ‘package:base’: #> #> date
eom(ymd(20120203, 20140203))
#> [1] "2012-02-29" "2014-02-28"