makeup_format | R Documentation |
Creates a format sample to be applied to a value
makeup_format(
sample = NULL,
format = NULL,
locale = NULL,
type = "",
suffix = "",
prefix = ""
)
sample |
human format to apply in v value |
format |
?? |
locale |
locale to use, for example "es-MX" for mexican. See posible values at makeup::available_locales |
type |
kind of value to be formatted: ("num", "dat" or "chr") |
suffix |
Character string to append after formatted value |
prefix |
Character string to append before formatted value |
a formatted character value
a function
f <- makeup_format(sample = "3 de abril 1900")
f(as.Date("2020-04-28"))
f <- makeup_format(sample = "abril 3 1900", type = "dat")
f("2020-04-28")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.