convert2CEdate: Function to convert Dates to my date format strings

Description Usage Arguments Value Background History/development log Author(s) See Also Examples

View source: R/convert2CEdate.R

Description

Function to convert Dates to my date format strings

Usage

1
2
3

Arguments

date

Date

Value

string

Background

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.

History/development log

Started before 5.iv.21 10.iv.21: tweaked to add synonym convertToCEdate

Author(s)

Chris Evans

See Also

Other converting utilities: convertVector2sentence()

Examples

1
2
3
4
5
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)

cpsyctc/CECPfuns documentation built on April 15, 2021, 3:26 a.m.