dtt_days_in_month {dttr2}R Documentation

Days in the Month

Description

Days in the Month

Usage

dtt_days_in_month(x)

Arguments

x

A Date or POSIXct vector.

Value

A integer vector of 28 to 31 indicating the days in the month.

See Also

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

Examples

dtt_days_in_month(as.Date(c("2000-02-11", "2001-02-01")))

[Package dttr2 version 0.5.0 Index]