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)

EmilyMarkowitz-NOAA/NMFSReports documentation built on March 26, 2023, 1:08 a.m.