Skip to main content
0 votes
1 answer
133 views

When including a table in a Rmarkdown document, I would like to enable automated line wrapping for tables that are wider than the page. There are some questions facing similar issues, like here, here, ...
lukasschoettler's user avatar
0 votes
1 answer
246 views

I created an HTML-based R-Quarto document running on the knitr engine. In the example below, I set up the document, include dplyr, and try to format cells of mtcars that are above the column's average ...
javery's user avatar
  • 41
1 vote
0 answers
73 views

I have run into some issues with printing tables to html files using R. When I view the file in R, everything looks fine but when I use print(), the file becomes empty: Table_3 <- cbind(...
Codynator's user avatar
0 votes
2 answers
78 views

I have a table of summary statistics created in R. Rows correspond to variables, columns to different samples. I want to export this table to Latex using the xtable package. However, some variables ...
s.willis's user avatar
  • 389
1 vote
1 answer
260 views

I'm looking for something that should be quite simple, but I cannot find a way to do this. Very frustrating that there is no easy-to-follow documentation on xtable. I have a dataframe: > df <- ...
aerw4's user avatar
  • 468
0 votes
1 answer
183 views

I have the results of a regression from a coxme model in R, and would like to export it as a Latex table. How do I do this? Code: > library(coxme) > > m1 <- coxme(Surv(exit, status) ~ 1 + (...
aerw4's user avatar
  • 468
0 votes
0 answers
192 views

So I guess there are multiple ways of doing this but they are all giving me headache. Let's say I have produced the latex code for a table using. library(modelsummary) library(tidyverse) a <- lm(...
Tordir's user avatar
  • 313
2 votes
0 answers
279 views

I would like to include the regression output from etable(feols(fml = formula, data = data, cluster = ~cluster)) as latex regression table into an rmarkdown creating an html output. My regression ...
tiny's user avatar
  • 159
1 vote
0 answers
520 views

I have a model summary from a mediation::mediate call, which I would like to export to LaTeX. Consider this example (from the documentation). # install.packages("mediation") library("...
Ivo's user avatar
  • 4,250
2 votes
0 answers
128 views

I'm new to knitr and Latex stuff, so this may be a very naive question, but I failed to find a correct answer. I'm doing empirical research that sometimes, we need to add headnotes as instruction for ...
Jia Gao's user avatar
  • 1,300
0 votes
0 answers
130 views

Could I also display the column with the histograms when creating the xtable from SK<-data.frame(skimr::skim(iris[,1:4])) to htmlTable::htmlTable(xtable(SK, result="html"))
firmo23's user avatar
  • 8,556
0 votes
1 answer
692 views

I would like to form the following LaTeX-table with xtable-package in R. Table 1: Wanted LaTeX table However, I do not understand how to add multiple extra rows to xtable-function to get above table. ...
Jh00ni's user avatar
  • 67
1 vote
1 answer
171 views

Im trying to create an elegant table as described here but I get the result inside html tags instead of a table. library(xtable) # x is a matrix containing the data # method : correlation method. &...
firmo23's user avatar
  • 8,556
0 votes
1 answer
155 views

I'm trying to build tables in knitr using xtable. Some tables have multilevel column names I'm building the tables in functions and storing the output of the functions as variables these table ...
pluke's user avatar
  • 4,506
0 votes
0 answers
42 views

I work with xtable which turns a table of r into a functionable latex code. <<echo=false>>= attach(warpbreaks) p2 <- round(tapply(breaks, list(tension), mean), digits=2) %>% as....
Dave Twickenham's user avatar

15 30 50 per page
1
2 3 4 5
27