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(), getNDecimals(), getNDecimalsData()


inTextSummaryTable documentation built on June 22, 2024, 9:24 a.m.