powered by
Pad string with spaces, justified on either the left or right
rvn_stringpad(string, width, just = "r", padstring = " ")
Padded string
Text string
Number of characters total, including desired spaces
'r' for right, 'l' for left
string to use for padding (default space character)
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')
Run the code above in your browser using DataLab