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/RInstatClimatic documentation built on June 30, 2023, 7:40 p.m.