xunitspct: Determine the appropriate unit for a percent value.

View source: R/NMFSReports.R

xunitspctR Documentation

Determine the appropriate unit for a percent value.

Description

Determine the appropriate unit for a percent value (e.g., 1000000 = '1 Million'.

Usage

xunitspct(value, sign = TRUE)

Arguments

value

A numeric.

sign

Include percent sign. Default = T.

Examples

xunitspct(value = 8.4)
xunitspct(value = -8.4, sign = TRUE)
xunitspct(value = -8.4, sign = FALSE)

emilyhmarkowitz/RMarkReports documentation built on March 25, 2023, 4:30 p.m.