Description Usage Arguments Value
given a logic vector and corresponding value for ordering, reuturn an index vector where logicVec is TRUE and sort the index by valVec
1 | logic2sortedIndex(logicVec, valVec, decreasing = TRUE)
|
logicVec |
logic vector |
valVec |
value vector; should have 1-to-1 correspondence to logicVec |
decreasing |
used in sorting |
a vector of index
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.