Learn R Programming

Biograph (version 2.0.6)

cmc_as_Date: Converts a vector of dates in Century Month Code (CMC) to object of class 'Date'.

Description

Converts vector of dates in Century Month Code (CMC) to object of class 'Date'.

Usage

cmc_as_Date (x,selectday,format.out)

Arguments

x
Date in Century Month Code
selectday
If input date is in Century Month Code (year and month), selectday gives the day of the month. Default value is one, the transition occurs on the 1st of the month.
format.out
Format of output dates

Value

Dates (object of class 'Date'): days since 1-1-1970 and printed as date in Gregorian calendar, e.g. "1946-03-01"

Examples

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

Run the code above in your browser using DataLab