Right pad strings the way of pipe operator

string %rpad% pad.width

Arguments

string

Character vector or NULL

pad.width

string or .digit where to indicate the pad and width

Value

A character vector or NULL

Details

This functions is a pipe version of stringr::pad

Examples

5 %rpad% '.2'
#> [1] "5 "
'é' %rpad% 'è.5'
#> [1] "éèèèè"