Low-level sorting: bit sort
In one pass over the vector NA
s are handled according to parameter
na.last
by range_sortna
, then, if the vector is unsorted,
bit sort is invoked.
bitsort(x, na.last = NA, depth = 1)
x |
an integer vector |
na.last |
|
depth |
an integer scalar giving the number of bit-passed before switching to quicksort |
a sorted vector
bitsort(c(2L,0L,1L,NA,2L)) bitsort(c(2L,0L,1L,NA,2L), na.last=TRUE) bitsort(c(2L,0L,1L,NA,2L), na.last=FALSE)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.