[R] printing an arbitrary-length character vector in columns on a page of a pdf report
Christopher W. Ryan
cry@n @end|ng |rom b|ngh@mton@edu
Wed Jun 6 05:29:44 CEST 2018
Richard--
Nice. If I understand your code correctly, in the line
ddm <- matrix("", (n+2) %/% nc, nc)
I could instead use
ddm <- matrix("", (n + nc - 1) %/% nc, nc)
for generalizability, as I may have to increase nc as the list of words
grows ever longer.
Thanks everyone. Several good suggestions.
--Chris Ryan
Richard M. Heiberger wrote:
> n <- length(dd)
> ddm <- matrix("", (n+2) %/% nc, nc)
> ddm[1:n] <- dd
More information about the R-help
mailing list