r_scale: Rank values

Description Usage Arguments Value

View source: R/convergence.R

Description

Compute ranks for a numeric array, that is, replace each value by its rank. Average rank for ties are used to conserve the number of unique values of discrete quantities.

Usage

1

Arguments

x

(numeric) A scalar, vector, matrix, or array of values.

Value

A numeric array of ranked values with the same size and dimension as the input.


posterior documentation built on Sept. 9, 2021, 5:07 p.m.