wom | R Documentation |
wom()
is a convenience function I use for constructing
calendars in ggplot2. It takes a date and returns, as a numeric
vector, the week of the month for the date given to it.
wom(x)
x |
a date |
wom()
assumes Sunday is the start of the week. This can
assuredly be customized later in this function, but right now the assumption
is Sunday is the start of the week (and not Monday, as it might be in
other contexts).
wom()
is a convenience function I use for constructing
calendars in ggplot2. It takes a date and returns, as a numeric
vector, the week of the month for the date given to it.
wom(as.Date("2022-01-01"))
wom(Sys.Date())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.