pixiedust icon indicating copy to clipboard operation
pixiedust copied to clipboard

Automatically break wide tables

Open kusmi opened this issue 7 years ago • 1 comments

If I have a wide table, it just overflows the paper on latex output. E.g.:

Example.pdf

library(pixiedust)
e <- data.frame(dust = 1:5,
                random = rnorm(5),
                random2 = rnorm(5),
                random3 = rnorm(5),
                random4 = rnorm(5),
                random5 = rnorm(5),
                random6 = rnorm(5),
                random7 = rnorm(5),
                random8 = rnorm(5),
                random9 = rnorm(5),
                random10 = rnorm(5),
                random11 = rnorm(5),
                random12 = rnorm(5)
                )
(x <- dust(e) %>%
  sprinkle_table(round = 2, longtable = 6))

so it would be nice, if pixiedust would support that as well. The only other table package which supports breaking wide tables seems to be pander

kusmi avatar Feb 22 '18 15:02 kusmi

I'm researching this. If I can find a simple way to do this for Latex output I can incorporate it. But I haven't found anurging yet.

nutterb avatar Feb 25 '18 12:02 nutterb