How to Add Abbreviations Table to Rmarkdown

Roel M. Hogervorst

2020/05/18

Categories: r Tags: formatting rmarkdown academic

Quick tip if you write a lot rmarkdown documents and you want to add abbreviations add the folling bit to the top. Its auto sorted too.

library(tidyverse)
tibble::tribble(
    ~abbreviation, ~meaning,
   "ZZA", "Ze Zoom Abbreviation",
    "tribble", "a row wise tibble"
) %>% 
    arrange(abbreviation) %>%
    knitr::kable(caption = "abbreviations")