ith.rank: Get i'th rank from list

View source: R/yogitools.R

ith.rankR Documentation

Get i'th rank from list

Description

Retieve the i'th ranked item from a numerical vector

Usage

ith.rank(values, i, high = TRUE)

Arguments

values

a numerical vector

i

the rank

high

whether to rank by highest or lowest values.

Value

the ith ranked value

Examples

vals <- rnorm(100,0,1)
ith.rank(vals,4)

jweile/yogitools documentation built on May 11, 2023, 7:42 p.m.