find_rank: This function calculates the ranks of a vector based on...

View source: R/sdminp_calculation.R

find_rankR Documentation

This function calculates the ranks of a vector based on another vector

Description

find_rank is used by sdminp_fdr to speed up the calculation

Usage

find_rank(target, ruler)

Arguments

target

a decreacing-sorted vector for measure by the ruler

ruler

has the same length as target, also a decreasing-sorted vector

Value

a numerica vector, with each element i shows the numbers of values in the target that is bigger than the ruler[i]

Examples

a=c(8,6,4,2)
b=c(7,4,3,1)
find_rank(a,b)

mqzhanglab/wHC documentation built on April 1, 2022, 6:28 p.m.