Tag Archives: Tables

R Markdown: How to place two tables side by side using ‘knitr’ and ‘kableExtra’

Intro When I was recently writing some report using R Markdown, I wanted to place two rather small tables side by side. Since I usually use the kable()-function of the knitr package and the kableExtra package to print tables, I … Continue reading

Posted in Tips & Tricks | Tagged , | 3 Comments

How to print tables with absolute and relative values in R

Introduction In R, there are several ways to generate tables. while the table() function generates tables with absolute numbers, the prop.table() function returns tables with relative values (percentages). However, I couldn't find a function to return a table with both … Continue reading

Posted in Data Management | Tagged | Leave a comment