dateMatch function

Match dates

Match dates

Change the date to the beginning of the month date.

dateMatch(x, y)

Arguments

  • x: date vector to match with y date vector.
  • y: date vector.

Returns

changed date vector.

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)

Author(s)

Jonas Striaukas

  • Maintainer: Jonas Striaukas
  • License: GPL (>= 2)
  • Last published: 2022-04-29

Useful links