median: Median

View source: R/depth_object.R

medianR Documentation

Median

Description

Generic function for computing the median. For depth objects, returns the deepest observation. For all other objects, delegates to stats::median.

Usage

median(x, ...)

Arguments

x

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

...

Additional arguments passed to methods.

Value

For depth objects, a named list with elements point, depth, and index. For other objects, see median.


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