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,
estimateName = NULL,
keepNotFormatted = TRUE,
useFormatOrder = TRUE
)
Arguments
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). |
Value
A <summarised_result>
object.
Examples
result <- mockSummarisedResult()
result |>
formatEstimateName(
estimateName = c(
"N (%)" = "<count> (<percentage>%)", "N" = "<count>"
),
keepNotFormatted = FALSE
)
[Package visOmopResults version 1.1.1 Index]