commit | 5a7689e0d87f9f672d571149dba5d1ee072beff2 | [log] [tgz] |
---|---|---|
author | Hao Zhu <haozhu233@gmail.com> | Mon Jun 26 15:37:24 2017 -1000 |
committer | Hao Zhu <haozhu233@gmail.com> | Mon Jun 26 15:37:24 2017 -1000 |
tree | 830c3e1ff26aae0553bd775602edbd48d7e10d86 | |
parent | 8a160b1dcf99dccf8e41c2be90066ba573f72c86 [diff] [blame] |
Add examples to the doc site
diff --git a/man/collapse_rows.Rd b/man/collapse_rows.Rd index 57b2d7c..49deb7f 100644 --- a/man/collapse_rows.Rd +++ b/man/collapse_rows.Rd
@@ -18,3 +18,9 @@ and make them multirow cells. Note that if you want to use `column_spec` to specify column styles, you should use `column_spec` before `collapse_rows`. } +\examples{ +dt <- data.frame(a = c(1, 1, 2, 2), b = c("a", "a", "a", "b")) +x <- knitr::kable(dt, "html") +collapse_rows(x) + +}