kableExtra: Dynamic add_header_above labeling
问题 I would like to create a pdf with rmarkdown. The PDF should contain a table. The table should have a dynamic column label. The tabhead should display the calendar week. However, the calendar week (e.g., KW29) is not displayed but the variable name "kw0". What is my error? library(knitr) library(kableExtra) library(lubridate) options(knitr.table.format = "latex") loadData <- function() {# load some data} myData<- loadData () kw0 <- paste("KW", week(Sys.Date()) - 1, sep = "") kw1 <- paste("KW",