zeroPad: Prepend zeros to an integer until its string representation...

View source: R/utils.R

zeroPadR Documentation

Prepend zeros to an integer until its string representation has 'string_length' characters.

Description

Prepend zeros to an integer until its string representation has 'string_length' characters.

Usage

zeroPad(x, string_length)

Arguments

x

'integer(1)' An integer to prepend zeros to so the returned string length of 'string_length'.

string_length

'integer(1)' The desired length of the returned string.


bhklab/rPharmacoDI documentation built on Oct. 31, 2022, 11:06 a.m.