pxweb (version 0.9.1)

str_pad: Pad a string to a fixed size

Description

Pad a string to a fixed size

Usage

str_pad(txt, n = 5, pad = " ", type = "left")

Arguments

n

final char width

pad

pad symbol

type

pad from 'left' or 'right'.

x

a character vector to pad