as_decimal_year | R Documentation |
Convert date to decimal year
as_decimal_year(x)
x |
A date vector |
A decimal year vector
as_decimal_year(as.Date("2020-01-01"))
today() |> as_decimal_year() |> decimal_year_to_date()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.