justify {mathgraph} | R Documentation |
Returns a vector like the input, but each string may have added blank spaces at the start and/or end.
justify(x, type = "r")
x |
a character vector. |
type |
a string giving the type of justification. This may be an abbreviation of one of "right", "left", "center". |
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.
Nick Efthymiou
S Poetry, Patrick J. Burns
data(freeny) as.matrix(justify(dimnames(freeny.x)[[2]], "r")) as.matrix(justify(dimnames(freeny.x)[[2]], "l")) as.matrix(justify(dimnames(freeny.x)[[2]], "c"))