View source: R/nice_date_functions.R
| nice_year | R Documentation |
Nicely print a year in a given format
nice_year(x, year_format)
x |
A year variable |
year_format |
The current format of x, one of "fyear6", "fyear4", "cyear2" |
A string formatted year
x <- 201516
nice_year(x, "fyear6")
nice_year(97, "cyear2")
nice_year(12, "cyear2")
nice_year("0708", "fyear4") # this fails - is it supposed to?
nice_year("07/08", "fyear4")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.