Description Usage Arguments Value Examples
Format pin
for pretty printing
1 | format_pin(x, format. = "%Y%m%d%N", ...)
|
x |
vector of class "pin" (see |
format. |
character string specifying the output format.
|
... |
arguments passed to |
character vector of same length as x
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | x <- as.pin(fake_pins$pin[1:10])
# Separate elements with hyphens:
format_pin(x, "%Y-%m-%d-%N")
# Separate even further
format_pin(x, "%C-%y-%m-%d-%N")
# The special P-format for maximal readability
format_pin(x, "%P")
# A custom representation
format_pin(x, "Borned %d of %B in %Y (a %A in week %U) with suffix no: %N")
# Extract only the year
format_pin(x, "%Y")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.