| psthr | R Documentation |
Rounds numeric values and formats as "value (lower, upper)" with intelligent formatting:
Values with |x| < 0.01 or |x| > 1000: scientific notation
Other values: standard rounding with trailing zeros
psthr(x, y = 2, compact = FALSE)
psthr0(x, digits = 2)
x |
Numeric vector to round and format |
y |
Number of digits/significant figures (default 2) |
compact |
If TRUE, omit spaces for compact display (e.g. plots) |
Character string with first element followed by remaining elements in parentheses
psthr0(): Compact version without spaces (for plots)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.