25. Counting 1 bits {VeryLargeIntegers} | R Documentation |
Counting the number of 1-bits in the base 2 expression of vli (Very Large Integer) objects.
count1bits(x) ## Default S3 method: count1bits(x) ## S3 method for class 'numeric' count1bits(x) ## S3 method for class 'vli' count1bits(x)
x |
object of class vli |
integer
Javier Leiva Cuadrado
x <- as.vli("69158247560284795612") count1bits(x)