pad2longest {ecan}R Documentation

Pad a string to the longest width of the strings.

Description

Pad a string to the longest width of the strings.

Usage

pad2longest(string, side = "right", pad = " ")

Arguments

string

Strings.

side

Side on which padding character is added (left, right or both).

pad

Single padding character (default is spaces).

Value

    Strings.

Examples

x <- c("a", "ab", "abc")
pad2longest(x, side = "right", pad = " ")


[Package ecan version 0.2.1 Index]