years | R Documentation |
Works like 'months', 'weekdays', etc. for years.
years(x, ...)
## S3 method for class 'Date'
years(x, ...)
## Default S3 method:
years(x, ...)
x |
a Date object |
date |
an object that can be converted to a 'Date' |
the year as an integer
years(Date)
: method for Date objects
years(default)
: default method
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.