powered by
f_sign - Formats numeric values to just their sign ('-' == < 0, '+' == > 0, or '' == 0).
f_sign
f_sign(x, positive = "+", negative = "-", zero = "", ...)ff_sign(...)
ff_sign(...)
A vector of values.
A string/value to insert in for positive values.
A string/value to insert in for negative values.
A string/value to insert in for zero values.
ignored.
Returns a string of signs.
f_num
# NOT RUN { f_sign(c(-10, 0, 10)) f_sign(c(-10, 0, 10), zero = 0) ## web based f_sign(c(-10, 0, 10), '<b>+</b>', '<b>–</b>') # }
Run the code above in your browser using DataLab