formatHeader | R Documentation |
Pivots a <summarised_result>
object based on the column names in header,
generating specific column names for subsequent header formatting in
formatTable function.
formatHeader(
result,
header,
delim = "\n",
includeHeaderName = TRUE,
includeHeaderKey = TRUE
)
result |
A |
header |
Names of the variables to make headers. |
delim |
Delimiter to use to separate headers. |
includeHeaderName |
Whether to include the column name as header. |
includeHeaderKey |
Whether to include the header key (header, header_name, header_level) before each header type in the column names. |
A tibble with rows pivotted into columns with key names for subsequent header formatting.
result <- mockSummarisedResult()
result |>
formatHeader(
header = c(
"Study cohorts", "group_level", "Study strata", "strata_name",
"strata_level"
),
includeHeaderName = FALSE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.