as_year | R Documentation |
Convert a date into a year
as_year(x)
x |
an object coercible into a base::Date. See |
A character
vector representing the years of the input
# Retrieve only the year
as_year("1988-01-01")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.