[R] printing an arbitrary-length character vector in columns on a page of a pdf report

Richard M. Heiberger rmh @end|ng |rom temp|e@edu
Wed Jun 6 06:52:45 CEST 2018


yes, thank you for catching that slip.

On Tue, Jun 5, 2018 at 11:29 PM, Christopher W. Ryan
<cryan using binghamton.edu> wrote:
> 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
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.




More information about the R-help mailing list