formattable.POSIXct {formattable} | R Documentation |
Create a formattable POSIXct vector
Description
Create a formattable POSIXct vector
Usage
## S3 method for class 'POSIXct'
formattable(
x,
...,
formatter = "format.POSIXct",
preproc = NULL,
postproc = NULL
)
Arguments
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. |
Value
a formattable
POSIXct vector
Examples
times <- as.POSIXct("2015-04-10 09:30:15") + 1:5
ftimes <- formattable(times, format = "%Y%m%dT%H%M%S")
ftimes
ftimes + 30
[Package formattable version 0.2.1 Index]