getMaxNDecimalsData: Get maximum number of decimals in a variable based on the...

View source: R/decimals.R

getMaxNDecimalsDataR Documentation

Get maximum number of decimals in a variable based on the data (getNDecimalsData)

Description

Get maximum number of decimals in a variable based on the data (getNDecimalsData)

Usage

getMaxNDecimalsData(x)

Arguments

x

Numeric vector.

Value

Integer with maximum number of decimals in a character vector.

Author(s)

Laure Cougnaud x <- c(0.99, 5.679, 50.45, 1450) # extract max number of decimals based on data: getMaxNDecimalsData(x)

See Also

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


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