Description Usage Arguments Value Author(s) Examples
Pads a string to fixed length (StringLen) with leading character (PadChar). If string length > StringLen, issues warning but returns original string
1 | varPadString(X, StringLen, PadChar = '0')
|
X |
String to pad |
StringLen |
Fixed length of output strings |
PadChar |
Character to use for padding |
Returns string(s) with padding
John J. Curtin jjcurtin@wisc.edu
1 | varPadString(c('1', '2', '300'),3,'0')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.