Description Usage Arguments Value References See Also Examples
That is a function to separate digits from a number.
This function is used in DigSumSingleRule
, which calculates the sum of digits.
1 | digits(x)
|
x |
numeric value of which digits are separated |
A vector which contains the digits if the number (in base 10).
https://stat.ethz.ch/pipermail/r-help/2011-March/270786.html
1 2 3 | m<-digits(46)
m[1]#4
m[2]#6
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.