padZeros: pad zeros on integers

View source: R/padZeros.R

padZerosR Documentation

pad zeros on integers

Description

pad zeros on integers

Usage

padZeros(x, nchars)

Arguments

x

integers to pad. They can be coded as characters already.

nchars

Optional specification of length of character strings to return. If not supplied, characters will be padded to match length of max value in x.

Value

A character vector


NMsim documentation built on Nov. 2, 2024, 9:06 a.m.