View source: R/formatEstimateValue.R
formatEstimateValue | R Documentation |
Formats the estimate_value column of <summarised_result>
object by editing
number of decimals, decimal and thousand/millions separator marks.
formatEstimateValue(
result,
decimals = c(integer = 0, numeric = 2, percentage = 1, proportion = 3),
decimalMark = ".",
bigMark = ","
)
result |
A |
decimals |
Number of decimals per estimate type (integer, numeric, percentage, proportion), estimate name, or all estimate values (introduce the number of decimals). |
decimalMark |
Decimal separator mark. |
bigMark |
Thousand and millions separator mark. |
A <summarised_result>
.
result <- mockSummarisedResult()
result |> formatEstimateValue(decimals = 1)
result |> formatEstimateValue(decimals = c(integer = 0, numeric = 1))
result |>
formatEstimateValue(decimals = c(numeric = 1, count = 0))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.