Description Usage Arguments Value
View source: R/date_truncate.R
Truncate a date to the level of a year, quarter or month in the style of SQL date truncation
1 | date_truncate(date_object, level = c("month", "quarter", "year"))
|
date_object |
A date vector |
level |
One of "year", "quarter" or "month", indicating the level to which the dates should be truncated |
A Date vector of identical length to the input containing the truncated dates
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.