rank.depth: Depth-Based Ranks

View source: R/depth_object.R

rank.depthR Documentation

Depth-Based Ranks

Description

Ranks observations by depth. Rank 1 is assigned to the deepest (most central) observation; rank n to the shallowest (most outlying).

Usage

## S3 method for class 'depth'
rank(x, ...)

Arguments

x

A depth object from compute_depth().

...

Ignored.

Value

Integer vector of length n. Rank 1 = deepest.


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