mid_month: Find the middle of the month for a given date

View source: R/frequency_analysis.R

mid_monthR Documentation

Find the middle of the month for a given date

Description

Find the middle of the month for a given date

Usage

mid_month(date)

Arguments

date

a vector of dates

Value

the middle day of the month the given dates fall in

Examples

date <- as.Date("2020-12-28")
mid_month(date)
mid_month(c("2019-02-15", "2020-03-08", "2010-06-01"))

USGS-R/HASP documentation built on July 28, 2024, 7:53 a.m.