r_scale: Rank values

View source: R/convergence.R

r_scaleR Documentation

Rank values

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

r_scale(x)

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 Nov. 2, 2023, 5:56 p.m.