pow {HadamardR} | R Documentation |
pow functions finds the exponent of 2.
pow(n)
n |
integer |
This function checks the given number is the power of 2 or not If the given number is power of 2 it returns the exponent value; otherwise NULL is returned.
power of 2
pow(4)
# 2
pow(5)
#NULL
pow(6)
#NULL