quicksort2 {bit} | R Documentation |
Low-level sorting: binary quicksort
Description
In one pass over the vector NA
s are handled according to parameter
na.last
by range_sortna()
, then, if the vector is unsorted,
binary quicksort is invoked.
Usage
quicksort2(x, na.last = NA)
Arguments
x |
an integer vector |
na.last |
|
Value
a sorted vector
Examples
quicksort2(c(2L, 0L, 1L, NA, 2L))
quicksort2(c(2L, 0L, 1L, NA, 2L), na.last=TRUE)
quicksort2(c(2L, 0L, 1L, NA, 2L), na.last=FALSE)
[Package bit version 4.6.0 Index]