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

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

table.dotsR Documentation

To pad dots (or other text) to tables for improved readability.

Description

Objective: To pad dots (or other text) to tables for improved readability. See also: table.dots.vec and substring.with.dots. Sample call:

table.dots("k.elec",N=40,before=!FALSE,st=".",st.space=" ")

table.dots("k.elec",N=40,before=FALSE,st="Error ",st.space=" = ")

Produces this output:

[1] "................................. k.elec"

[1] "k.elec = Error Error Error Error Error E"

Usage

table.dots("k.elec",N=40,before=!FALSE,st=".",st.space=" ")

Arguments

txt

A single string (not a vector).

N

number of dots (e.g. 40).

before

should be set to TRUE if the dots should preceed the txt.

st

is the dot-string (e.g. ".").

st.space

(e.g. " = ").

Value

string vector

Author(s)

Claus E. Andersen


claus-e-andersen/clanTools documentation built on June 2, 2024, 6:23 a.m.