nDecimal | R Documentation |
Trailing zeros are not counted.
nDecimal(x)
x |
(numeric or integer vector) a number vector |
(integer vector) numbers of decimal points, excluding trailing zeros, or NA
if x
is NA
This is an internal function used in num2formattedStr
num2formattedStr
library(wfr)
nDecimal(c(1.010,0.3,NA))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.