Learn R Programming

myTAI (version 2.3.4)

quantile_rank: Calculate Quantile Ranks

Description

Calculate quantile ranks for a numeric vector, handling ties using average method.

Usage

quantile_rank(x)

Value

A numeric vector of quantile ranks between 0 and 1

Arguments

x

numeric vector for which to calculate quantile ranks

Examples

Run this code
# Calculate quantile ranks for a vector
ranks <- quantile_rank(c(1, 2, 3, 4, 5))

Run the code above in your browser using DataLab