mmstat.dec: mmstat.dec

View source: R/mmstat.dec.R

mmstat.decR Documentation

mmstat.dec

Description

Computes the number of the significant digits based on the smallest non-zero difference of the sorted data.

Usage

mmstat.dec(x, ord = NULL)

Arguments

x

numeric: data vector

ord

index: subset of the ordered data (default: NULL)

Value

The number of significant digits and (the subset of) the order of the data.

Examples

x <- rnorm(20)
d <- mmstat.dec(x)
# create strings so that they are unique (if they were)
sprintf("%.*f", d$dec, x)

HKRbook documentation built on Oct. 6, 2022, 9:06 a.m.