dtt_dayte {dttr2}R Documentation

Dayte

Description

Dayte

Usage

dtt_dayte(x, ...)

## S3 method for class 'Date'
dtt_dayte(x, start = 1L, ...)

## S3 method for class 'POSIXct'
dtt_dayte(x, start = 1L, ...)

Arguments

x

A date/time vector.

...

Unused.

start

An integer scalar of the starting month or a Date scalar of the starting date.

Value

A Date vector with the year set to year.

A Date vector of the daytes.

Methods (by class)

See Also

Other dayte: dtt_dayte_time(), dtt_daytt()

Examples

dtt_dayte(as.Date(c("2001-01-01", "2015-12-13")))

[Package dttr2 version 0.5.0 Index]