lz_pad: Pad with zeroes on the left

Description Usage Arguments Value

View source: R/lz_pad.R

Description

This just calls str_pad to pad each element of a character vector with zeros on the left side. This is helpful when standardizing the length of numeric ID variables.

Usage

1
lz_pad(string, width)

Arguments

string

a vector.

width

minimum number of characters after padding.

Value

A character vector.


coletl/coler documentation built on May 12, 2021, 9:44 p.m.