depthMedian-methods: Depth median

Description Usage Arguments Examples

Description

Return point with maximum depth function value. If multiple points have the same value, mean average of them will be returned.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
depthMedian(x, ...)

## S4 method for signature 'matrix'
depthMedian(x, ...)

## S4 method for signature 'data.frame'
depthMedian(x, ...)

## S4 method for signature 'Depth'
depthMedian(x)

Arguments

x

object of class Depth or matrix.

...

arguments passed to depth function (e.g method).

Examples

1
2
3
4
5
6
7
# depthMedian for matrix
x = matrix(rnorm(600), nc = 3)
depthMedian(x)

# depthMedian works with object of class Depth
dp = depth(x)
depthMedian(dp)


Search within the DepthProc package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.