padString | R Documentation |
pad a character string to a fixed length
padString(
x,
stringLength = max(nchar(x)),
padCharacter = " ",
justify = "left",
...
)
x |
|
stringLength |
|
padCharacter |
|
justify |
|
... |
additional parameters are ignored. |
character
vector of length(x)
Other jam string functions:
asSize()
,
breaksByVector()
,
cPasteSU()
,
cPasteS()
,
cPasteUnique()
,
cPasteU()
,
cPaste()
,
fillBlanks()
,
formatInt()
,
gsubOrdered()
,
gsubs()
,
makeNames()
,
mixedOrder()
,
mixedSortDF()
,
mixedSorts()
,
mixedSort()
,
mmixedOrder()
,
nameVectorN()
,
nameVector()
,
padInteger()
,
pasteByRowOrdered()
,
pasteByRow()
,
sizeAsNum()
,
tcount()
,
ucfirst()
,
uniques()
padString(c("one","two","three"));
padString(c("one","two","three","four"), padCharacter="_", justify="center");
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.