
Gets C length of a vector ignoring any length-methods dispatched by classes
get_length(x)
integer scalar
a vector
Queries the vector length using C-macro LENGTH
, this can be substantially faster than
length(unclass(x))
length(bit(12))
get_length(bit(12))
Run the code above in your browser using DataLab