int2padstr: Create a string of specified width from an integer

int2padstrR Documentation

Create a string of specified width from an integer

Description

Converts an integer or a vector of integers to a string of fixed length padded with a specified character (e.g., zeroes).

Usage

int2padstr(ii, pchr, w)

Arguments

ii

integer or vector of integers

pchr

a padding character (e.g., "0")

w

width of the return string (an integer)

Value

a string or a vector of strings


chepec/R-common documentation built on July 27, 2023, 11:33 a.m.