View source: R/formatting_helpers.R
| format_market_share | R Documentation |
Format market share as percentage
format_market_share(val, digits = 1)
val |
Numeric value as decimal (0-1 scale) |
digits |
Number of decimal places (default: 1) |
Formatted market share percentage string
format_market_share(0.234) # "23.4%"
format_market_share(0.05) # "5.0%"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.