| date2num | R Documentation |
date2num and num2date support conversion between
tind dates and integer representations of dates (days since ...)
found in different software packages.
date2num(x, format)
num2date(x, format)
x |
a |
format |
a character value determing numeric representation of date;
currently, the following are supproted: |
date2num returns an integer vector
and num2date returns tind representing dates.
jdn for description of Julian Day Numbers.
(td <- today())
fmts <- c("R", "MATLAB", "Excel", "SAS", "JDN")
(n <- sapply(fmts, function(fmt) date2num(td, fmt)))
lapply(fmts, function(fmt) num2date(n[fmt], fmt))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.