The labels generated represent the same numbers, but with trailing zeros removed/added and compensated by attaching to each label an SI multiplier "prefix".
SI_tg_format(exponent = 0, digits = 3, ...)SI_tagged(x, exponent = 0, digits = 3, ...)
SI_tagged(x, exponent = 0, digits = 3, ...)
numeric Power of 10 to use as multiplier
number of significant digits to show
other arguments passed on to format
format
a numeric vector to format
a function with single parameter x, a numeric vector, that returns a character vector
# NOT RUN { SI_tg_format()(1:10) SI_tg_format()(runif(10)) SI_tg_format(exponent = 2)(runif(10)) SI_tagged(1:10) SI_tagged(runif(10)) SI_tagged(runif(10), digits = 2) # }
Run the code above in your browser using DataCamp Workspace