year_iso | R Documentation |
This function transforms two-digit years (YY) to four-digit years compliant with ISO-8601 (YYYY). It is based on the assumption that two-digit years above a certain boundary year belong to the reference century and years at or below that boundary belong to the following century.
This function transforms two-digit years (YY) to four-digit years compliant with ISO-8601 (YYYY). It is based on the assumption that two-digit years above a certain boundary year belong to the reference century and years at or below that boundary belong to the following century.
year_iso(x, boundary = 50, century = 1900)
x |
A vector of two-digit years. |
boundary |
The boundary year. Defaults to 50 (= 1950). |
century |
The reference century. Defaults to the 1900s (20th century). |
A vector of four-digit years.
year_iso(91) year_iso(c(13, 45, 36, 57, 68))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.