logic2sortedIndex: conver logic vector to sorted index vector

Description Usage Arguments Value

View source: R/formatting_p.R

Description

given a logic vector and corresponding value for ordering, reuturn an index vector where logicVec is TRUE and sort the index by valVec

Usage

1
logic2sortedIndex(logicVec, valVec, decreasing = TRUE)

Arguments

logicVec

logic vector

valVec

value vector; should have 1-to-1 correspondence to logicVec

decreasing

used in sorting

Value

a vector of index


nickytong/GenAnalysis documentation built on July 20, 2019, 8:57 a.m.