pad: pad

View source: R/basicf.r

padR Documentation

pad

Description

Short call to stringi::stri_pad.

Usage

pad(
  str,
  pad = " ",
  width = floor(0.9 * getOption("width")),
  side = c("left", "right", "both"),
  use_length = FALSE
)

Arguments

str

String to pad (character)

pad

String to use as prefix/suffix when padding

width

Maxiaml Length (number of characters) of pad copies to add to str.

side

On which end to append pad

use_length

See stringi::stri_pad

Examples

pad

UriNeri/NeriMisc documentation built on Aug. 13, 2022, 4:37 p.m.