Questions tagged [tables-package]
5 questions
2
votes
1 answer
Make table in R Markdown using tabular() and booktabs
I am using the tabular() function in the tables package to make tables in an R Markdown file. I would like to use the booktabs() option to include a horizontal rule. However, when I do so, the code from booktabs() appears in my LaTex document,…

missng
- 199
- 13
2
votes
2 answers
Simple example of using tables + knitr for latex
I'm struggling with a tables package, all the examples in the packable docs are so complex and none of them works for me with knitr and latex. Could somebody help be out and display a simple table with some formulas and multiline labels in the…

dariaa
- 6,285
- 4
- 42
- 58
2
votes
1 answer
multiline table header using knitr and latex
I ended up using tables package with knitr, but I can not figure out how to get a multiline header. Here is the code:
<>=
matrix <- matrix(1:9, nrow = 3)
colnames(matrix) <- c("first column", "seconf column…

dariaa
- 6,285
- 4
- 42
- 58
1
vote
2 answers
how to split table into 2 pages in R markdown using datasummary?
I am trying to create a table using datasummary via R Markdown. My table is, however, very long with many variables. Please see example code below:
---
title: "R Notebook"
output:
pdf_document: default
html_notebook: default
html_document:
…

Daniela Rodrigues
- 545
- 3
- 17
0
votes
1 answer
datasummary: Combine factor and numeric variables in a single table
I am trying to create a table with factor and numeric variables using modelsummary. The way I am doing this is by converting factor variables to numeric so that only 1 line appears for each factor variable and all variables appear in the same…

Daniela Rodrigues
- 545
- 3
- 17