R: Get the last month and day of the year

get.last.monthday.of.year {climdex.pcic} | R Documentation

## Get the last month and day of the year

### Description

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

### Usage

    get.last.monthday.of.year(d, sep = "-")

### 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

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

[Package climdex.pcic version 1.1-11 Index]