getNDecimalsData | R Documentation |
Get number of decimals based on the data in a numeric vector. Note: NA is returned if the element is missing (NA).
getNDecimalsData(x)
x |
Numeric vector. |
Numeric vector of same length than x
with the number of decimals.
Laure Cougnaud
Other decimals:
formatPercentage()
,
getMaxNDecimals()
,
getMaxNDecimalsData()
,
getNDecimals()
x <- c(0.99, 5.679, 50.45, 1450)
getNDecimalsData(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.