formattable.Date | R Documentation |
Create a formattable Date vector
## S3 method for class 'Date'
formattable(x, ..., formatter = "format.Date", preproc = NULL, postproc = NULL)
x |
a vector of class |
... |
arguments to be passed to |
formatter |
formatting function, |
preproc |
pre-processor function that prepares |
postproc |
post-processor function that transforms formatted output for printing. |
a formattable
Date vector
dates <- as.Date("2015-04-10") + 1:5
fdates <- formattable(dates, format = "%m/%d/%Y")
fdates
fdates + 30
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.