valign | R Documentation |
Vertically align character vectors.
valign(s, align = "|", insert.at = "<>", replace = TRUE, fixed = TRUE)
s |
a character vector |
align |
a regular expression |
insert.at |
a regular expression |
replace |
logical |
fixed |
logical |
The function expands the elements of a character vector in such a way that the elements are vertically aligned, which can be handy when generating reports. See Examples.
a character vector
Enrico Schumann
strwrap
, format
s <- c("Player 1 <>| 100",
"another player <>| 999999")
cat(paste(s, collapse = "\n"))
## Player 1 <>| 100
## another player <>| 999999
cat(paste(valign(s), collapse = "\n"))
## Player 1 100
## another player 999999
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.