justify: Justify Elements of a Vector

Description Usage Arguments Value Author(s) References See Also Examples

Description

Returns a vector like the input, but each string may have added blank spaces at the start and/or end.

Usage

1
justify(x, type = "r")

Arguments

x

a character vector.

type

a string giving the type of justification.
This may be an abbreviation of one of "right", "left", "center".

Value

a character vector like x, except all elements have the same number of characters, and the text is lined up along one edge, or centered.

Author(s)

Nick Efthymiou

References

S Poetry, Patrick J. Burns

See Also

format, substring, paste

Examples

1
2
3
4

mathgraph documentation built on May 2, 2019, 11:04 a.m.

Related to justify in mathgraph...