fsort.Rd
Similar to base::sort
but fast using parallelism. Experimental.
fsort(x, decreasing = FALSE, na.last = FALSE, internal=FALSE, verbose=FALSE, ...)
x | A vector. Type double, currently. |
---|---|
decreasing | Decreasing order? |
na.last | Control treatment of |
internal | Internal use only. Temporary variable. Will be removed. |
verbose | Print tracing information. |
... | Not sure yet. Should be consistent with base R. |
Process will raise error if x
contains negative values.
Unless x
is already sorted fsort
will redirect processing to slower single threaded order followed by subset in following cases:
data type other than double (numeric)
data having NA
s
decreasing==FALSE
The input in sorted order.
#> user system elapsed #> 0.099 0.004 0.103#> user system elapsed #> 0.033 0.004 0.037#> [1] TRUE