n_rank: Normalise using ranks

View source: R/normalise.R

n_rankR Documentation

Normalise using ranks

Description

This is simply a wrapper for base::rank(). Higher scores will give higher ranks.

Usage

n_rank(x, ties.method = "min")

Arguments

x

A numeric vector

ties.method

This argument is passed to base::rank() - see there for details.

Value

Numeric vector

Examples

x <- runif(20)
n_rank(x)


COINr documentation built on Oct. 9, 2023, 5:07 p.m.