View source: R/convert2CEdate.R
convert2CEdate | R Documentation |
Function to convert Dates to my date format strings
convert2CEdate(date)
convertToCEdate(date)
date |
Date |
string
I like to write dates in the format dd.mm.yyyy but doing the months, mm, in Roman numerals, i.e. i = January, xii = December. This, unless someone has never met the Roman's weird numbering system seems always to promote initial bemusement but then recognition and I've never had anyone say "but why not use Roman numerals for the days?" so I think it does disambiguate dates. It is a trivial function and perhaps I'm the only person who will ever use it but here it is. It expects input as a Date and can handle a vector of dates.
Started before 5.iv.21 10.iv.21: tweaked to add synonym convertToCEdate
Chris Evans
Other converting utilities:
convertVector2sentence()
date1 <- as.Date("1/1/2021", format = "%d/%m/%Y")
convert2CEdate(date1)
date2 <- as.Date("2/1/2021", format = "%d/%m/%Y")
dates12 <- c(date1, date2)
convert2CEdate(dates12)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.