dtt_days_in_year: Days in the Year

View source: R/days-in-year.R

dtt_days_in_yearR Documentation

Days in the Year

Description

Days in the Year

Usage

dtt_days_in_year(x)

Arguments

x

A Date or POSIXct vector.

Value

A integer vector of 365 and 366 indicates the days of the year.

See Also

Other days: dtt_days_in_month(), dtt_doy_to_date(), dtt_doy()

Examples

dtt_days_in_year(as.Date(c("2000-10-11", "2001-01-01")))

dttr2 documentation built on Nov. 14, 2023, 5:10 p.m.