I am using the breast cancer data from dslabs package, and i am using kableExtra to produce nice tables but i have many columns and i tried to scale down and produce one summary table of 11-12 variable at the time but still looking too small.
Question1: Do you have any idea how i could produce ONE table with rows as my variables (columns) and columns with the statistics min, max, mean ... ? I am sure there is an efficient way to do this
# my current code
data(brca)
data=data.frame(cbind(brca$y,brca$x))
data=data %>%
rename(
Diagnosis = V1
)
desc=summary(data)
kable(desc[,1:12],caption = "Descriptif of variables",booktabs=T)%>%
kable_styling(latex_options =c("striped", "scale_down"))
kable(desc[,13:21],caption = "Descriptif of variables",booktabs=T)%>%
kable_styling(latex_options =c("striped", "scale_down"))
kable(desc[,22:31],caption = "Descriptif of variables",booktabs=T)%>%
kable_styling(latex_options =c("striped", "scale_down"))
Question 2: If you have any idea or recourses on how to include Rmd files in latex that would be appreciated, because right now, i produce my tables with R and then take a screen shot of my tables and finally insert them in my Latex (it is exhausting i have too many tables).
Thank you in advance for your help.