Engineering notation is a subset of scientific notation: the exponent of
ten must be divisible by three. Powers of ten are written with a product
symbol (the LaTeX \times
symbol), not computer E-notation. The
numerical output strings are bounded by $...$
for rendering in
math mode.
The output format is "coefficient x 10^exponent" except for exponents equal
to 0, 1, or 2. In these cases, the output format is floating-point.
The input argument is a data frame with at least one numeric variable.
Only double variables (not integers and not dates) are formatted in
powers of ten.
The function distinguishes between integers that represent factors and
those that represent numerical integers. Numerical integers are returned
as characters in math mode. Factors and other non-numeric variables
are returned unaffected.
Each double variable (except dates) can be assigned its own number
of significant digits. The default is 4. If sigdig
is a single
value, it is used for all variables; if a vector, it must have the
same number of elements as there are double variables in the data frame.
Setting sigdig = 0
returns the double variables as characters
but unaltered.
For numbers with no decimal point, trailing zeros can be ambiguous.
Such numbers can be optionally reported with the decimal moved an
additional three places to the left.
To learn more about docxtools, start with the vignettes:
browseVignettes(package = "docxtools")
.