pdi | R Documentation |
This function calculates PDI, defined as the sum of a number's digits raised to a given power.
pdi(x, pwr = 2, base = 10)
x |
The |
pwr |
The power to which digits are raised. Default is 2. |
base |
The base of the source integer. Note that calculations within this function are performed in base 10. Default is 10. |
This is a helper function for dontWorry
. Use at your own risk.
The PDI of the input value and base, as a bigz
integer.
Carl Witthoft, carl@witthoft.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.