quantile: Quantile for upper-triangular values in distance matrix

Description Usage Arguments Details Value Author(s) Examples

Description

Extend the stats quantile function for handling distancematrix objects.

Usage

1
2
## S4 method for signature 'distancematrix'
quantile(x, probs, ...)

Arguments

x

A distancematrix object.

probs

numeric vector or probabilities with values in [0,1].

...

Additional arguments, passed to quantile.

Details

The upper.triangular values of the distance matrix object are passed to the quantile function.

Value

numeric vector of quantiles corresponding to the given probabilities

Author(s)

Cole Beck

Examples

1
2
3
plainmatrix<-as.matrix(dist(sample(1:25, 8, replace=TRUE)))
mdm<-distancematrix(plainmatrix)
quantile(mdm, probs=c(0.0, 0.25, 0.50, 0.75, 1.00))

nbpMatching documentation built on May 21, 2017, 1:21 a.m.

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

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

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

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