View source: R/formatEstimateName.R
formatEstimateName | R Documentation |
Formats estimate_name and estimate_value columns by changing the name of the estimate name and/or joining different estimates together in a single row.
formatEstimateName(
result,
estimateName = NULL,
keepNotFormatted = TRUE,
useFormatOrder = TRUE,
estimateNameFormat = lifecycle::deprecated()
)
result |
A |
estimateName |
Named list of estimate name's to join, sorted by computation order. Indicate estimate_name's between <...>. |
keepNotFormatted |
Whether to keep rows not formatted. |
useFormatOrder |
Whether to use the order in which estimate names appear in the estimateName (TRUE), or use the order in the input dataframe (FALSE). |
estimateNameFormat |
deprecated. |
A <summarised_result>
object.
result <- mockSummarisedResult()
result |>
formatEstimateName(
estimateName = c(
"N (%)" = "<count> (<percentage>%)", "N" = "<count>"
),
keepNotFormatted = FALSE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.