topoSort | R Documentation |
Combine multiple sorted vectors into a single vector assuming there are no cycles or weird topologies. Where a global position is ambiguous, the result is placed arbitrarily.
topoSort(vectors, maxIter = 1000, errorIfAmbiguous = FALSE)
vectors |
A list of vectors each vector containing sorted elements to be merged into a global sorted vector |
maxIter |
An integer specifying the maximum number of iterations before bailing out. This should be unnecessary and is just a safety feature in case of some unexpected input or bug. |
errorIfAmbiguous |
If TRUE then error if any ambiguities arise |
a vector with all unique elements sorted by the combined ordering provided by the input vectors
normalizeTaxa
topoSort(list(c('a','b','f','g'),c('b','e','g','y','z'),c('b','d','e','f','y')))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.