pentad: Get the pentad component of a date-time object

View source: R/pentad.R

pentadR Documentation

Get the pentad component of a date-time object

Description

Convert a date or date-time object to a yearly pentad (5-day period)

Usage

pentad(date)

Arguments

date

A date-time object

Value

a numerical vector of pentad objects corresponding to date variable.

Examples

pentad(as.Date("2020/12/25"))
pentad(as.Date("1999/01/01"))

IDEMSInternational/cdms.products documentation built on July 7, 2023, 10:13 a.m.