eoMonth function

Return the end of the month

Return the end of the month

This function is provided primarily to be used together with dbplyr when querying a database. It will also work in dplyr against data frames.

eoMonth(date)

Arguments

  • date: A date in the month for which we need the end.

Returns

The date of the last day of the month.

Examples

eoMonth(as.Date("2000-02-01"))