This checks whether the dates provided are the last day of a month.

is_eom(dates)

Arguments

dates

a vector of dates.

Value

a logical vector

Examples

library("lubridate") is_eom(ymd(20110228)) # TRUE
#> [1] TRUE
is_eom(ymd(20120229)) # TRUE
#> [1] TRUE