I have a list of dataframes like these:
library(plyr)
mt_list <- dlply(mtcars, .(cyl), data.frame)
names(mt_list) <- c("four", "six", "eight")
I want to create a nested latex table using the stargazer package. By nested, I mean I want to combine three dataframes within a single table and give each of the three dataframe's their own title within the table. The latex table should look this (photoshopped image):
Is it possible to create a table that looks like this from within R? I'm specifically interested in using the stargazer package to do this.
Not exactly what you are looking for but should be a good start.