pad_string: Left-pad a string to a target width

View source: R/msg.R

pad_stringR Documentation

Left-pad a string to a target width

Description

Left-pad a string to a target width

Usage

pad_string(x, target = 17, char = " ")

Arguments

x

Character: String to pad.

target

Integer: Target total width.

char

Character: Padding character.

Value

Character: x left-padded with char to width target.

Author(s)

EDG

Examples

pad_string("hi", target = 6L)

rtemis.core documentation built on Sept. 20, 2026, 9:06 a.m.