fmt_minus_sign | R Documentation |
Format negative numbers with a minus sign
fmt_minus_sign(xs)
xs |
a vector of numbers or a character vector representing numbers |
Negative zero -0
, which might happen from aggressive rounding,
does not get a minus sign.
the vector with leading hyphens replaced with HTML minus signs
(−
).
fmt_minus_sign(c(1, .2, -1, -.2))
# Don't allow zero to be signed
fmt_minus_sign(c(-0, round(-0.001)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.