getMaxNDecimalsData | R Documentation |
getNDecimalsData
)Get maximum number of decimals in a variable based on the data
(getNDecimalsData
)
getMaxNDecimalsData(x)
x |
Numeric vector. |
Integer with maximum number of decimals in a character vector.
Laure Cougnaud x <- c(0.99, 5.679, 50.45, 1450) # extract max number of decimals based on data: getMaxNDecimalsData(x)
Other decimals:
formatPercentage()
,
getMaxNDecimals()
,
getNDecimals()
,
getNDecimalsData()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.