R/integerutil.R
get_length.Rd
Gets C length of a vector ignoring any length-methods dispatched by classes
get_length(x)
a vector
integer scalar
Queries the vector length using C-macro LENGTH, this can be substantially faster than length(unclass(x))
LENGTH
length(unclass(x))
length(bit(12)) #> [1] 12 get_length(bit(12)) #> [1] 1