Skip to contents

Format a Percentage

Usage

fmt_pct(x, digits = 1)

Arguments

x

Numeric proportion between 0 and 1

digits

Number of decimal places (default: 1)

Value

Formatted character string with '%'