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

Description Usage Arguments Value Author(s) Examples

View source: R/cmc_as_Date.R

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)
  

Biograph documentation built on May 29, 2017, 11:48 a.m.

Search within the Biograph package
Search all R packages, documentation and source code