nutterb / pixiedust

Tables So Beautifully Fine-Tuned You Will Believe It's Magic.
178 stars 18 forks source link

Automatically break wide tables #109

Open kusmi opened 6 years ago

kusmi commented 6 years ago

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

nutterb commented 6 years ago

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.