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