text_pad: padding text to specified width

Description Usage Arguments

View source: R/text_pad.R

Description

padding text to specified width

text_wrap default

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
text_pad(
  string,
  width = max(nchar(string)),
  pad = " ",
  side = c("left", "right", "both", "l", "r", "b", 1, 2, 3)
)

## Default S3 method:
text_pad(
  string,
  width = max(nchar(string)),
  pad = " ",
  side = c("left", "right", "both", "l", "r", "b", 1, 2, 3)
)

Arguments

string

text to be wrapped

width

width text should have after padding; defaults to: max(nchar(string))

pad

the character or character sequence to use for padding

side

one of: c("left", "right", "both", "l", "r", "b", 1, 2, 3)


stringb documentation built on Jan. 26, 2021, 1:07 a.m.

Related to text_pad in stringb...