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