padcenter: Pad text on both sides

View source: R/primitives.R

padcenterR Documentation

Pad text on both sides

Description

Pad text on both sides

Usage

padcenter(x, width, pad = " ")

Arguments

x

An atomic vector.

width

Target width, in characters or rolling-window size depending on the function.

pad

Padding character.

Value

A character vector padded to width.


basetable documentation built on Sept. 18, 2026, 9:13 a.m.