Date2cmc: convert between Date and cmc formats

Description Usage Arguments Value

Description

Utility functions to convert between R's Date class and century-month-code (cmc) format, which measures time as month integers

Usage

1
2
3
4
5
Date2cmc(Date)

cmc2Date(cmc, day = 1)

cmc2year(cmc)

Arguments

Date

an object of class Date to convert to century-month-code format.

cmc

an object of class numeric representing a month in century-month-code to convert to a Date

day

the day of the month to assign when creating the date

Value

an object of class numeric (for Date2cmc) of of class Date (for cmc2Date).


SEEG-Oxford/seegMBG documentation built on May 9, 2019, 11:08 a.m.