powered by
padding
padding(str, space, with, to=c("left","right","center"))
padding("My string",25,"XoX","center") # [1] "XoXXoXXoMy stringXXoXXoXX"
Run the code above in your browser using DataLab