getNDecimalsData: Get number of decimals based on the data in a numeric vector....

View source: R/decimals.R

getNDecimalsDataR Documentation

Get number of decimals based on the data in a numeric vector. Note: NA is returned if the element is missing (NA).

Description

Get number of decimals based on the data in a numeric vector. Note: NA is returned if the element is missing (NA).

Usage

getNDecimalsData(x)

Arguments

x

Numeric vector.

Value

Numeric vector of same length than x with the number of decimals.

Author(s)

Laure Cougnaud

See Also

Other decimals: formatPercentage(), getMaxNDecimalsData(), getMaxNDecimals(), getNDecimals()

Examples

x <- c(0.99, 5.679, 50.45, 1450)
getNDecimalsData(x)

inTextSummaryTable documentation built on Sept. 12, 2023, 5:06 p.m.