last_in_month {dateutils}R Documentation

Last date in the month

Description

Return the latest date in each month for the values in 'dates'

Usage

last_in_month(dates)

Arguments

dates

A sequence of dates in 'as.Date()' format

Value

Last day of each month

Examples

dates <- seq.Date(from = as.Date("2020-09-11"),
                  by = "day", length.out = 10)
last_in_month(dates)

[Package dateutils version 0.1.5 Index]