find_prefix {microbenchmark} | R Documentation |
Find SI prefix for unit
Description
Find SI prefix for unit
Usage
find_prefix(x, f = min, minexp = -Inf, maxexp = Inf, mu = TRUE)
Arguments
x |
a numeric |
f |
function that produces the number from |
minexp |
minimum (decimal) exponent to consider, e.g. -3 to suppress prefixes smaller than milli (m). |
maxexp |
maximum (decimal) exponent to consider, e.g. 3 to suppress prefixes larger than kilo (k). |
mu |
if |
Value
character with the SI prefix
Author(s)
Claudia Beleites
[Package microbenchmark version 1.4.10 Index]