rvn_stringpad {RavenR} | R Documentation |
Pad string with spaces, justified on either the left or right
rvn_stringpad(string, width, just = "r")
string |
Text string |
width |
Number of characters total, including desired spaces |
just |
'r' for right, 'l' for left |
Padded string
Leland Scantlebury, leland@scantle.com
# Returns " To the right" rvn_stringpad('To the right', 15, just='r') # Returns "Padded " rvn_stringpad('Padded', 10, just='l')