View source: R/date.functions.R
dateMatch | R Documentation |
Change the date to the beginning of the month date.
dateMatch(x, y)
x |
date vector to match with y date vector. |
y |
date vector. |
changed date vector.
Jonas Striaukas
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.