expfn | R Documentation |
Modify input numbers to expression class of exponential format like expression(1.35~'×'~10^{4})
.
expfn(
x,
digits = 3,
scale = 1,
prefix = "",
suffix = "",
decimal.mark = ".",
trim = TRUE,
...
)
x |
numeric vector. |
digits |
a number of digits just before '×'. Default: 3 |
scale |
a number to multiply x. Default: 1. |
prefix |
a character string to paste just before x. Default: ”. |
suffix |
a character string to paste just after x. Default: ”. |
decimal.mark |
a character string to use decimal mark, Default: '.'. |
trim |
Logical, if ‘FALSE’, values are right-justified to a common width (see ‘base::format()’). Default: TRUE. |
... |
extra arguments passed to |
DETAILS
An expression
str_extract
scientific
expfn(c(1.2e8, 1.03e8, -Inf))
expfn(-Inf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.