Takes a denominator and a numerator, calculates a percentage and formats for printing in a markdown doc.

nice_perc(numerator, denominator)

Arguments

numerator

The numerator

denominator

The denominator

Value

A string giving the percentage to one decimal place

Examples

nice_perc(5, 10)
#> [1] "50.0"