median.depth: Depth-Based Median

View source: R/depth_object.R

median.depthR Documentation

Depth-Based Median

Description

Returns the observation with the highest depth — the multivariate analog of the median.

Usage

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

Arguments

x

A depth object from compute_depth().

...

Ignored.

Value

A named list:

point

Numeric vector of length d — the deepest observation.

depth

Depth value at the median.

index

Row index of the deepest observation in the data.


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