align | R Documentation |
Facilitates easy alignment of strings within a character vector. Designed to help implementers of formatters for custom data types.
align(x, width = NULL, align = c("left", "right"), space = " ")
x |
A character vector |
width |
The width that each string is padded to. If |
align |
How should strings be aligned? If |
space |
What character should be used for the padding? |
align(c("abc", "de"), align = "left")
align(c("abc", "de"), align = "right")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.