blob: aec300bcabc2f13bf925a868497eaa68e5fcb5fc [file] [log] [blame]
Hao Zhu334376d2020-08-19 00:45:09 -04001---
2title: "duplicated rows"
3output: pdf_document
4---
5
6```{r}
7library(dplyr)
8library(kableExtra)
9
10tbl1 <- bind_rows(mtcars, mtcars, mtcars, mtcars)
11
12kable(tbl1, longtable = T, row.names = 1:128) %>%
13 pack_rows(index = c("g1" = 3, "g2" = 6, "g3" = 5, "g4" = 5, "g1" = 3, "g2" = 6, "g3" = 5, "g4" = 5,
14 "g1" = 3, "g2" = 6, "g3" = 5, "g4" = 5))
15```