This function reports the significant figures of a given mean
together
with its respective error
term (for instance confidence interval or
standard deviation).
Arguments
- x
a numeric vector or data frame object containing the averaged values.
- error
a numeric vector or data frame object containing the respective error terms.
- data
a data frame containing the specified columns. If empty,
x
anderror
need to be given as numeric vectors.- style
a string specifying the output style to be used. The default style
"pm"
reports the results as "3 ± 6", while"par"
results in outputs like "0.26 (0.02)". "siunitx" returns "0.26 (2)" which might be used together with xtable for automated LaTeX table outputs.- na.digit
an integer controlling to which significant digit the mean value should be rounded if the error is zero or no error data was provided.
- ...
arguments passed to
prettyNum
().