get.last.monthday.of.year: Get the last month and day of the year

Description Usage Arguments Details Value Examples

View source: R/climdex.r

Description

Get the last month and day of the year as a character sting, separated by the specified separator.

Usage

1

Arguments

d

An exemplar date.

sep

Separator to use.

Details

This is a utility function necessitated by 360-day calendars. Works on PCICt objects.

Value

A string (like "12-30", or "12-31")

Examples

1
2
library(PCICt)
last.mday <- get.last.monthday.of.year(as.PCICt("2011-01-01", cal="360"))

climdex.pcic documentation built on March 26, 2020, 7:17 p.m.