strpad: Pad string to desired width

Description Usage Arguments Value Author(s)

View source: R/strings.R

Description

Pad string to desired width

Usage

1
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


dMod documentation built on Jan. 27, 2021, 1:07 a.m.