formatEstimateName {visOmopResults} | R Documentation |
Formats estimate_name and estimate_value column
Description
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.
Usage
formatEstimateName(
result,
estimateNameFormat = NULL,
keepNotFormatted = TRUE,
useFormatOrder = TRUE
)
Arguments
result |
A summarised_result. |
estimateNameFormat |
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 estimateNameFormat (TRUE), or use the order in the input dataframe (FALSE). |
Value
A summarised_result object.
Examples
result <- mockSummarisedResult()
result |>
formatEstimateName(
estimateNameFormat = c(
"N (%)" = "<count> (<percentage>%)", "N" = "<count>"
),
keepNotFormatted = FALSE
)
[Package visOmopResults version 0.3.0 Index]