Learn R Programming

COINr (version 1.1.14)

n_rank: 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")

Value

Numeric vector

Arguments

x

A numeric vector

ties.method

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

Examples

Run this code
x <- runif(20)
n_rank(x)

Run the code above in your browser using DataLab