scientific_format {scales} | R Documentation |
Scientific formatter.
scientific_format(digits = 3, scale = 1, prefix = "", suffix = "", decimal.mark = ".", trim = TRUE, ...) scientific(x, digits = 3, scale = 1, prefix = "", suffix = "", decimal.mark = ".", trim = TRUE, ...)
digits |
Number of significant digits to show. |
scale |
A scaling factor: |
prefix, suffix |
Symbols to display before and after value. |
decimal.mark |
The character to be used to indicate the numeric decimal point. |
trim |
Logical, if |
... |
Other arguments passed on to |
x |
A numeric vector to format. |
A function with single parameter x
, a numeric vector, that
returns a character vector.
scientific_format()(1:10) scientific_format()(runif(10)) scientific_format(digits = 2)(runif(10)) scientific(1:10) scientific(runif(10)) scientific(runif(10), digits = 2) scientific(12345, suffix = " cells/mL")