Calculate Digit Sum
Calculate digit sum of a number x.
DigitSum(x)
x |
an integer number |
the digit sum
Andri Signorell <andri@signorell.net> based on code by Julius benchmarked by Uwe
DigitSum(c(124, 45, 268)) # [1] 7 9 16
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.