strpad: Pad string to desired width

View source: R/strings.R

strpadR Documentation

Pad string to desired width

Description

Pad string to desired width

Usage

strpad(string, width, where = "right", padding = " ", autoelide = FALSE)

Arguments

string

String to pad

width

Desired width of padded string

where

Padding can be inserted to the right or left of <string>. Default to 'right'.

padding

A single character with with the padding space is filled. Defaults to blank ' ' yielding invisible padding.

autoelide

If TRUE, <string> is elided if it is wider than <width>. The position of eliding follows <where>. Defaults to FALSE.

Value

Padded string of length <width>.

Author(s)

Wolfgang Mader, Wolfgang.Mader@fdm.uni-freiburg.de


dkaschek/dMod documentation built on July 27, 2023, 11:45 p.m.