View source: R/rvn_utilities.R
rvn_stringpad | R Documentation |
Pad string with spaces, justified on either the left or right
rvn_stringpad(string, width, just = "r", padstring = " ")
string |
Text string |
width |
Number of characters total, including desired spaces |
just |
'r' for right, 'l' for left |
padstring |
string to use for padding (default space character) |
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')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.