integer.to.integer.power | R Documentation |
Raise a fixed-point integer to a fixed-point integer power, while maintaining the numeric type of the integer, returning
integer.to.integer.power(base, exponent)
base |
the integer base of the exponential |
exponent |
the integer exponent of the exponential |
base^exponent
This is needed since in R, a^b, with a and b both integer, returns a float rather than an integer.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.