get.mondate.displayFormats | R Documentation |
Methods to access the vector of displayFormat
s
used by default.
get.mondate.displayFormats() set.mondate.displayFormats(x, clear = FALSE)
x |
a |
clear |
|
A vector of formats.
Dan Murphy
get.mondate.displayFormats() # Attempting to convert a date given in the French format dd/mm/yyyy actually # works because the European format %Y/%m/%d successfully translates # that character string in the same way as.Date translates it. m <- mondate("31/08/2015") m year(m) # 31 .. probably an unreasonable value d <- as.Date("31/08/2015") d year(d) # Ensure the appropriate format is found first by # reprioritizing it in the list set.mondate.displayFormats(c(Frb = "%d/%m/%Y", get.mondate.displayFormats()), clear = TRUE) m <- mondate("31/08/2015") m year(m) # 2015
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.