Learn R Programming

dMod (version 0.3.1)

strpad: 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 . Default to 'right'.
padding
A single character with with the padding space is filled. Defaults to blank ' ' yielding invisible padding.
autoelide
If TRUE, is elided if it is wider than . The position of eliding follows . Defaults to FALSE.

Value

Padded string of length .