Description Usage Arguments Details Value Author(s) Examples
elements of uniformal 'nchar' length
1 | fixed_length(x, n = NULL, fill = " ", right = TRUE)
|
x |
vector to fix |
n |
uniformal nchar length for elements of x |
fill |
character to fill the void |
right |
fill to the right? |
make nchar have the same value for all elements of x
character string
Henrik Renlund
1 2 3 4 | fixed_length(x = c("A", "ABC"))
fixed_length(x = c("A", "ABC"), 2, fill = "_")
fixed_length(x = c("A", "ABC"), fill = ".", right = FALSE)
fixed_length(8:12, fill = "0")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.