Skip to contents

Padd a character vector

Usage

padString(x, width, padding = " ")

Arguments

x

The character vector

width

The width to pad to

padding

The character to pad with

Value

x with padding appended to each element

Examples

padString(
  c("One",
    "Two",
    "Three"
  ),
  width = 7
);
#> [1] "One    " "Two    " "Three  "