format_time | R Documentation |
Format a vector of time, date, or any numeric values into a series of human readable chunks
format_time(x, date_format = "%Y-%m-%d")
x |
numeric or Date |
date_format |
character, format string for dates in output (default: "%Y-%m-%d") |
character vector
format_time(c(1:5, 10, 12, 24, 25))
format_time(as.Date(c("2023-01-01", "2023-01-02", "2023-01-03", "2023-01-05", "2023-01-06")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.