powered by
Uses format with some customized defaults. It's being called by kable_bpR.
format
kable_bpR
nice_numbers( x, prefix, suffix, digits = 0L, width = NULL, nsmall = digits, space = c(html = " ", latex = "\\,") )
A formatted character string.
The numeric value to format. Can be a single number, numeric vector, matrix, or data frame.
An optional symbol to prepend, ignored if missing.
An optional symbol to append, ignored if missing.
See round.
round
See format.
Named character vector, a space definition to put between prefix/suffix and value. Defaults to a thin space for both, LaTeX and HTML. If you use provide one character, that one is used regardless of the output environment.
nice_numbers(12345.6789, suffix="€", digits=2)
Run the code above in your browser using DataLab