cmc_date | R Documentation |
Converts a date to DHS Century Month Code (CMC).
cmc_date(date)
date |
a Date vector |
CMC date is defined as the number of months since 1900:
cmc = (year - 1900) * 12 + momth
an integer vector of CMC dates
https://dhsprogram.com/Data/Guide-to-DHS-Statistics/Organization_of_DHS_Data.htm?rhtocid=_4_2_0#Structure_of_DHS_Databc-1
cmc_date(Sys.Date())
cmc_date(as.Date("1987-02-11", format = "%Y-%m-%d"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.