perc {MiscMetabar}R Documentation

Convert a value (or a fraction x/y) in percentage

Description

[Maturing]

Usage

perc(x, y = NULL, accuracy = 0, add_symbol = FALSE)

Arguments

x

(required): value

y

if y is set, compute the division of x by y

accuracy

number of digits (number of digits after zero)

add_symbol

if set to TRUE add the % symbol to the value

Value

The percentage value (number or character if add_symbol is set to TRUE)

Author(s)

Adrien Taudière


[Package MiscMetabar version 0.9.1 Index]