str_pad: pad strings on one right or left

Description Usage Arguments Details

Description

pad strings on one right or left

Usage

1
2
3
4
5
6
7
8
9
str_rpad(string, width, pad = " ")

str_lpad(string, width, pad = " ")

str_pad_max(string, side = c("left", "right", "both"), pad = " ")

str_rpad_max(string, pad = " ")

str_lpad_max(string, pad = " ")

Arguments

string

string to pad

width

integer; minimum number of characters for the final string

pad

single character string

side

character; one of left, right or both

Details

These are convenience wrappers around stringr::str_pad()


decisionpatterns/stringr.tools documentation built on Nov. 4, 2019, 10:24 a.m.