rank: Rank

View source: R/depth_object.R

rankR Documentation

Rank

Description

Generic function for ranking. For depth objects, returns depth-based ranks with rank 1 assigned to the deepest observation. For all other objects, delegates to base::rank.

Usage

rank(x, ...)

Arguments

x

An object. For depth objects, see rank.depth.

...

Additional arguments passed to methods.

Value

For depth objects, an integer vector of length n where rank 1 is the deepest observation. For other objects, see rank.


depthR documentation built on June 26, 2026, 5:07 p.m.