Sort and use pre-sorted character vectors in set-operations
1 2 3
an unsorted vectors of strings
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++.
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
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.