dateMatch: Match dates

View source: R/date.functions.R

dateMatchR Documentation

Match dates

Description

Change the date to the beginning of the month date.

Usage

dateMatch(x, y)

Arguments

x

date vector to match with y date vector.

y

date vector.

Value

changed date vector.

Author(s)

Jonas Striaukas

Examples

x <- seq(as.Date("2020-01-01"),as.Date("2020-12-01"), by = "day")
set.seed(100)
x <- x[-sample(1:336, 100)]
y <- seq(as.Date("2020-01-01"),as.Date("2020-12-01"), by = "month")
dateMatch(x,y)

midasml documentation built on April 29, 2022, 9:06 a.m.