Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

formattable.Date

Create a formattable Date vector


Description

Create a formattable Date vector

Usage

## S3 method for class 'Date'
formattable(x, ..., formatter = "format.Date", preproc = NULL, postproc = NULL)

Arguments

x

a vector of class Date.

...

arguments to be passed to formatter.

formatter

formatting function, format.Date in default.

preproc

pre-processor function that prepares x for formatting function.

postproc

post-processor function that transforms formatted output for printing.

Value

a formattable Date vector

Examples

dates <- as.Date("2015-04-10") + 1:5
fdates <- formattable(dates, format = "%m/%d/%Y")
fdates
fdates + 30

formattable

Create 'Formattable' Data Structures

v0.2.1
MIT + file LICENSE
Authors
Kun Ren [aut, cre], Kenton Russell [aut]
Initial release
2021-01-05

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.