powered by
Get number of decimals based on the data in a numeric vector. Note: NA is returned if the element is missing (NA).
getNDecimalsData(x)
Numeric vector of same length than x
x
with the number of decimals.
Numeric vector.
Laure Cougnaud
Other decimals: formatPercentage(), getMaxNDecimals(), getMaxNDecimalsData(), getNDecimals()
formatPercentage()
getMaxNDecimals()
getMaxNDecimalsData()
getNDecimals()
x <- c(0.99, 5.679, 50.45, 1450) getNDecimalsData(x)
Run the code above in your browser using DataLab