irank: Integer Ranks

Description Usage Arguments Value Examples

View source: R/cscores.R

Description

Compute the number of elements less or equal the elements in a given vector.

Usage

1
irank(x, ox = NULL)

Arguments

x

a numeric vector.

ox

order(x), optionally (for efficiency in case order(x) is already known).

Value

A vector of integers.

Examples

1
2
3
4
5
6
x <- rnorm(10)
irank(x)
rank(x)
x <- c(1,2,3,3,0)
irank(x)
rank(x)

exactRankTests documentation built on Oct. 11, 2021, 9:08 a.m.