pad_var: Add Prefix and Leading Zero(s) to Variables

View source: R/helpers.R

pad_varR Documentation

Add Prefix and Leading Zero(s) to Variables

Description

Add prefix and leading zero(s) to variables in order to get strings of equal length.

Usage

pad_var(x, prefix = NULL)

Examples

## Not run: id <- c('1', '10', '100', '1000', '10000'); id_repair(id = a, prefix = 'CN_')

nrkoehler/xyzfuns documentation built on Nov. 12, 2024, 1:29 p.m.