round_percent: round_percent

Description Usage Arguments Examples

View source: R/common_functions.R

Description

A version of scales::percent() that allows for rounded digit so that you can have 20

Usage

1
round_percent(x, dig = 1)

Arguments

x

a numeric vector to format

dig

the number of digits after the percent to round. Default to 1.

Examples

1
2
round_percent(.24601)
round_percent(.24601, dig = 0)

eringrand/RUncommon documentation built on Sept. 22, 2020, 10:49 p.m.