powered by
Returns a vector like the input, but each string may have added blank spaces at the start and/or end.
justify(x, type = "r")
a character vector.
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.
S Poetry, Patrick J. Burns
format, substring, paste
format
substring
paste
# NOT RUN { 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")) # }
Run the code above in your browser using DataLab