mean_dist_to | R Documentation |
Creates a function to get the mean minimum distance between two sets of points.
mean_dist_to(target, squared = TRUE)
target |
A |
squared |
Logical indicating whether to compute the mean squared
distance (if |
A function that takes a data.frame
with the same number of columns as
target
and then returns the mean minimum distance between them.
Other helper functions:
delayed_with()
,
densify()
,
draw_data()
,
mean_dist_to_sf()
,
mean_self_proximity()
,
moments_n()
,
truncate_to()
target <- data.frame(x = rnorm(100), y = rnorm(100)) data <- data.frame(x = rnorm(100), y = rnorm(100)) distance <- mean_dist_to(target) distance(data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.