pad_left: add left padding to a vector of values

View source: R/pad_left.R

pad_leftR Documentation

add left padding to a vector of values

Description

add left padding to a vector of values

Usage

pad_left(.x, .n, padding_char = "0")

Arguments

.x

vector

.n

total number of characters result should have

padding_char

padding char to use, defaults to 0

Examples

pad_left(1, 3)
pad_left(c(1, 10, 100), 4)

metrumresearchgroup/PKPDmisc documentation built on Oct. 21, 2022, 9:41 a.m.