format_market_share: Format market share as percentage

View source: R/formatting_helpers.R

format_market_shareR Documentation

Format market share as percentage

Description

Format market share as percentage

Usage

format_market_share(val, digits = 1)

Arguments

val

Numeric value as decimal (0-1 scale)

digits

Number of decimal places (default: 1)

Value

Formatted market share percentage string

Examples

format_market_share(0.234)    # "23.4%"
format_market_share(0.05)     # "5.0%"

sensortowerR documentation built on March 18, 2026, 5:07 p.m.