pad_zero_conditional: pad strings of length X with leading zeroes or any other char

View source: R/pad_zero_conditional.R

pad_zero_conditionalR Documentation

pad strings of length X with leading zeroes or any other char

Description

pad strings of length X with leading zeroes or any other char

Usage

pad_zero_conditional(str, str_len = 7, char_pad = "0")

Arguments

str

string

str_len

nchar of string for which 0s or other char will be added

char_pad

char to be added, default 0

Value

returns a string vector


hhilbig/haschaR documentation built on Dec. 26, 2024, 5:40 a.m.