May I know how to add multiple headers to the table, similar as below, with reactable package? I see below code can draw one 2 headers, but have difficulty in 3 headers as below figure show.
(1) My first line header has multiple duplicated names
(2) I have 3 headers.
The flextable package does this. Code won't reprex however
suppressPackageStartupMessages({
library(flextable)
})
ft <- flextable(airquality[ sample.int(10),])
ft <- add_header_row(ft,
colwidths = c(4, 2),
values = c("Air quality", "Time")
)
ft <- theme_vanilla(ft)
ft <- add_footer_lines(ft, "Daily air quality measurements in New York, May to September 1973.")
ft <- color(ft, part = "footer", color = "#666666")
ft <- set_caption(ft, caption = "New York Air Quality Measurements")