Description Usage Arguments Value Examples
Convert a vector to a padded character column
1 | pad_vector(vec, header = NA, padding = " ", alignment = "R")
|
vec |
Vector to pad values of. |
header |
Optional name of vector to add to top of return value. |
padding |
Character to pad output vector with. |
alignment |
Alignment of text in output (one of 'R', 'L', 'C'). |
A character vector padded with spaces to give uniform width.
1 2 3 4 5 | pad_vector(c(1, 2, 300))
pad_vector(c(1, 2), header = "Header")
pad_vector(c(1, 2, 300), padding = "_")
pad_vector(c(1, 200, 3), alignment = "L")
pad_vector(c(100, 2, 30), alignment = "C")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.