substring.with.dots: To pad dots (or other text) to tables for improved...

Description Usage Arguments Value Author(s)

View source: R/table-dots-functions.R

Description

Objective: truncate string to n chars and pad with dots in front behind depending on reverse. Example:

substring.with.dots("Hello")

gives the following output:

"Hello .............."

See also table.dots and substring.with.dots.adv.

Usage

1

Arguments

x

is a vector of input values

n

combined length (incl. dots)

reverse

(FALSE = x then dots, TRUE = dots then x)

st

is the dot-character (i.e. normally ".").

Value

string (vectorized)

Author(s)

Claus E. Andersen


claus-e-andersen/clanTools documentation built on Oct. 23, 2020, 7:59 a.m.