powered by
Create a formattable Date vector
# S3 method for Date formattable(x, ..., formatter = "format.Date", preproc = NULL, postproc = NULL)
a vector of class Date.
Date
arguments to be passed to formatter.
formatter
formatting function, format.Date in default.
format.Date
pre-processor function that prepares x for formatting function.
x
post-processor function that transforms formatted output for printing.
a formattable Date vector
formattable
# NOT RUN { dates <- as.Date("2015-04-10") + 1:5 fdates <- formattable(dates, format = "%m/%d/%Y") fdates fdates + 30 # }
Run the code above in your browser using DataLab