kableextra

Do not remove spaces in kable function - with example

扶醉桌前 提交于 2020-12-13 17:52:29
问题 I'm summarizing data and creating a table within a Shiny application. My basic problem is that I would like to add some additional spaces in between elements in a concatenated string so that it is more readable, but the spaces added seem to disappear. I think that the paste() function is appropriately adding the extra space around the "+/-" symbol, but that using either kable or kableExtra to create a table deletes the spaces. I think I'm asking the same question as this person did, but that

Do not remove spaces in kable function - with example

ぃ、小莉子 提交于 2020-12-13 17:47:34
问题 I'm summarizing data and creating a table within a Shiny application. My basic problem is that I would like to add some additional spaces in between elements in a concatenated string so that it is more readable, but the spaces added seem to disappear. I think that the paste() function is appropriately adding the extra space around the "+/-" symbol, but that using either kable or kableExtra to create a table deletes the spaces. I think I'm asking the same question as this person did, but that

kableExtra: Dynamic add_header_above labeling

家住魔仙堡 提交于 2020-07-04 08:58:08
问题 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",