Description Usage Arguments Details Value Examples
Sort and use pre-sorted character vectors in set-operations
1 2 3 | sortAscii(x)
intersectPresort(pop, x)
setdiffPresort(pop, x)
|
x |
an unsorted vectors of strings |
pop |
a sorted vector of strings |
By default, sorting is done lexicographically in R. The routine sortAscii
does sorting accoring to the ASCII-order as done in C/C++.
For routines intersectPresort
and setdiffPresort
the first argument has to be sorted according to ASCII-order. This first argument is expected to be large compared to the second argument. Both functions are wrappers for optimized C++-functions performing the set-operation.
An character-vector. In case of intersectPresort
and setdiffPresort
, these vectors are unnamed.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.