Pad leading zeros to character

pad0(x, n)

Arguments

x

character or object that can be coerced to such

n

desired length of outcome vector

Value

Character vector of length n