Description Usage Arguments Value Examples
Extract numeric years from a Date, POSIXct or POSIXlt vector.
1 2 3 4 5 6 7 8 9 10 |
date |
Date, POSIXct or POSIXlt vector |
A numeric vector.
1 2 3 4 | Sys.Date()
years(Sys.Date())
years(as.POSIXct(Sys.Date()))
years(as.POSIXlt(Sys.Date()))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.