signif.res: Use significance to reformat number to given resolution.

Description Usage Arguments Value Author(s)

Description

Reformat number to given resolution.

Usage

1
signif.res(c(1.26763,0.00123,1,0.0011,1e-19,1.1e-4,NA),2)

Arguments

x

is a vector of numbers

resolution

is the number of significant digits (i.e. 3 could mean 1.23 or 0.123e-23).

resolution.zero

is the number of decimal places after the point (.) near zero (i.e. 3 could mean 0.001 or 95599.000).

print.for.na

is the value printed for NAs.

method

is the method used to determine significance (default method = "signif").

remove.lonely.point

Make sure that we do not get results like "2000." (i.e. a lonely point).

take.as.zero:

positive number below which we apply the fixed-number-of-digits approach. For a negative number, no such special approach is taken.

Value

A vectorof strings with the rounded numbers.

Author(s)

Claus E. Andersen


claus-e-andersen/clanTools documentation built on Oct. 23, 2020, 7:59 a.m.