View source: R/string_operations.R
col_align | R Documentation |
Align an ANSI colored string
col_align(
text,
width = getOption("width"),
align = c("left", "center", "right"),
type = "width"
)
text |
The character vector to align. |
width |
Width of the field to align in. |
align |
Whether to align |
type |
Passed on to |
The aligned character vector.
Other ANSI string operations:
col_nchar()
,
col_strsplit()
,
col_substr()
,
col_substring()
col_align(red("foobar"), 20, "left")
col_align(red("foobar"), 20, "center")
col_align(red("foobar"), 20, "right")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.