Learn R Programming

pxweb (version 0.17.0)

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

txt

a character vector to pad

n

final char width

pad

pad symbol

type

pad from 'left' or 'right'.