first_of_year {dint} | R Documentation |
Get First / Last Day of a Year
Description
Get First / Last Day of a Year
Usage
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)
Arguments
x |
Anything that can be coerced to a date with |
Value
a Date
Examples
first_of_year("2016-06-04")
last_of_year("2016-06-04")
[Package dint version 2.1.4 Index]