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

Share:

Description

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

Usage

1
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"

Author(s)

Frans Willekens

Examples

1
2
3
	# CMC 555, which is March 1,1946 or 1946.167
	cmc_as_Date (x=555,selectday=1)
  

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.