Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

irank

Integer Ranks


Description

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

Usage

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

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

exactRankTests

Exact Distributions for Rank and Permutation Tests

v0.8-32
GPL (>= 2)
Authors
Torsten Hothorn [aut, cre], Kurt Hornik [aut]
Initial release
2021-04-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.