day_of_year: Get First / Last Day of a Year

first_of_yearR 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 base::as.Date()

Value

a Date

Examples

first_of_year("2016-06-04")
last_of_year("2016-06-04")

dint documentation built on Oct. 17, 2022, 9:06 a.m.