Learn R Programming

Biograph (version 2.0.6)

cmc_as_year: Converts date in Century Month Code (CMC) to date in calendar year and fraction of year.

Description

Converts date in Century Month Code (CMC) to date in year and fraction of year.

Usage

cmc_as_year (x,selectday)

Arguments

x
Date in Century Month Code
selectday
If input date is in Century Month Code, selectday gives the day of the month. Default value is one, the transition occurs on the 1st of the month.

Value

Dates in calendar year and fraction of year

Examples

Run this code
	# CMC 555, which is March 1,1946 or 1946.167
	cmc_as_year (x=555,selectday=1)

Run the code above in your browser using DataLab