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/easyr documentation built on June 10, 2020, 4:58 p.m.