strpad {dMod} | R Documentation |
Pad string to desired width
Description
Pad string to desired width
Usage
strpad(string, width, where = "right", padding = " ", autoelide = FALSE)
Arguments
string |
String to pad |
width |
Desired width of padded string |
where |
Padding can be inserted to the right or left of <string>. Default to 'right'. |
padding |
A single character with with the padding space is filled. Defaults to blank ' ' yielding invisible padding. |
autoelide |
If TRUE, <string> is elided if it is wider than <width>. The position of eliding follows <where>. Defaults to FALSE. |
Value
Padded string of length <width>.
Author(s)
Wolfgang Mader, Wolfgang.Mader@fdm.uni-freiburg.de
[Package dMod version 1.0.2 Index]