Converts a numeric value to a string with the specified number of significant
figures, including trailing zeros. Values smaller than threshold are
displayed as "< threshold" and values larger than 1 - threshold are displayed
as "> 1 - threshold". Invalid values are displayed as "N/A".
Usage
AS.signif(x, digits = 2, threshold = 0.001)
Arguments
- x
A numeric value.
- digits
Number of significant figures. Default = 2.
- threshold
Lower bound below which values are displayed as
"< threshold" and values larger than 1 - threshold are displayed as
"> 1 - threshold". Default = 0.001.
Value
A string representation of x.