dist_wrt: Compute Distances with respect to a certain Point
Description
A function for computing (euclidean) distances with respect to a certain specified point.
Usage
dist_wrt(x, wrt = NULL)
Arguments
x
A numeric matrix (containing coordinates).
wrt
A specification of the point with respect to which to compute all distances: can be either a vector or
the character label of one of the row levels in x. If NULL or NA, then the origin (i.e.
the point c(0 , 0
Value
A matrix (containing distances between the rows of x and wrt).