first_of_year | R Documentation |
Get First / Last Day of a Year
first_of_year(x)
## S3 method for class 'date_xx'
first_of_year(x)
## S3 method for class 'integer'
first_of_year(x)
## Default S3 method:
first_of_year(x)
## S3 method for class 'numeric'
first_of_year(x)
last_of_year(x)
## S3 method for class 'date_xx'
last_of_year(x)
## S3 method for class 'integer'
last_of_year(x)
## Default S3 method:
last_of_year(x)
## S3 method for class 'numeric'
last_of_year(x)
x |
Anything that can be coerced to a date with |
a Date
first_of_year("2016-06-04")
last_of_year("2016-06-04")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.