Calculate the distance vector between a single point and each observation in the data frame
1 | calculate_dist(data, point, dist_method)
|
data |
data frame |
point |
center point around which weights are calculated in data frame |
dist_method |
the distance measure to be used. This must be one of "euclidean", "maximum", "manhattan", "canberra", "binary" or "minkowski". Any unambiguous substring can be given. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.