fixed_length: fixed length

Description Usage Arguments Details Value Author(s) Examples

View source: R/fixed_length.r

Description

elements of uniformal 'nchar' length

Usage

1
fixed_length(x, n = NULL, fill = " ", right = TRUE)

Arguments

x

vector to fix

n

uniformal nchar length for elements of x

fill

character to fill the void

right

fill to the right?

Details

make nchar have the same value for all elements of x

Value

character string

Author(s)

Henrik Renlund

Examples

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")

renlund/dataman documentation built on March 19, 2018, 10:09 a.m.