Generic function for distance matrix computation
dist(x, ...)# S3 method for default
dist(x, method = "euclidean", diag = FALSE,
upper = FALSE, p = 2, ...)
# S3 method for sym.data.table
dist(x, q = 2, ...)
An R object. Currently the are methods for numeric matrix, data.frame, dist object or symbolic data table
Further arguments passed to or from other methods
the distance measure to be used. This must be one of "euclidean", "maximum", "manhattan", "canberra", "binary" or "minkowski". Any unambiguous substring can be given.
logical value indicating whether the diagonal of the distance matrix should be printed by print.dist.
logical value indicating whether the upper triangle of the distance matrix should be printed by print.dist.
The power of the Minkowski distance.
q value for the Minkowski method
dist returns an object of class 'dist'