Description Usage Arguments Examples
Extracts a triple of year, month, day from date(s). If a single
date is provided, useful with zeallot
package's multi-assignment
operator. If multiple dates are provided, a tibble
of components (as
columns) are returned, which can be used with purrr
's multi-column
mappings.
1 | extract_ymd(x)
|
x |
|
1 2 3 4 5 6 | ## Not run:
library(zeallot)
c(year, month, day) %<-% extract_ymd(Sys.Date())
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.