Right pad strings the way of pipe operator
string %rpad% pad.width
string | Character vector or NULL |
---|---|
pad.width | string or .digit where to indicate the pad and width |
A character vector or NULL
This functions is a pipe version of stringr::pad
5 %rpad% '.2'#> [1] "5 "'é' %rpad% 'è.5'#> [1] "éèèèè"