format_ym | R Documentation |
Coerce and Format to Year-Month Strings
format_ym(x, m = NULL, format = "%Y-M%m")
x, m |
Two integer (vectors).
| ||||||||||||
format |
A format that uses a subset of the same placeholders as
Not all placeholders are supported for all |
a character
vector
Format shorthand functions in the form of format_y*_[preset]()
directly
apply formatting presets to anything that can be coerced to a date_xx
.
This is notably handy as they can be used as a labeling function for
ggplot2 axes (see vignette("dint")
)
format.date_ym()
Other coerce and format functions:
format_yq()
,
format_yw()
format_ym(2015, 5) format_ym(201505, format = "short") format_ym(201505, format = "shorter")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.