padString {jamba} | R Documentation |
pad a character string to a fixed length
Description
pad a character string to a fixed length
Usage
padString(
x,
stringLength = max(nchar(x)),
padCharacter = " ",
justify = "left",
...
)
Arguments
x |
|
stringLength |
|
padCharacter |
|
justify |
|
... |
additional parameters are ignored. |
Value
character
vector of length(x)
See Also
Other jam string functions:
asSize()
,
breaksByVector()
,
fillBlanks()
,
formatInt()
,
gsubOrdered()
,
gsubs()
,
makeNames()
,
nameVector()
,
nameVectorN()
,
padInteger()
,
pasteByRow()
,
pasteByRowOrdered()
,
sizeAsNum()
,
tcount()
,
ucfirst()
Examples
padString(c("one","two","three"));
padString(c("one","two","three","four"), padCharacter="_", justify="center");
[Package jamba version 1.0.4 Index]