nice_perc: Nicely formats percentages for printing

View source: R/nice_things.R

nice_percR Documentation

Nicely formats percentages for printing

Description

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

Usage

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)

simonthelwall/nicethings documentation built on Feb. 27, 2023, 3:15 p.m.