powered by
Creates a function to get the mean minimum distance between two sets of points.
mean_dist_to(target)
A data.frame with all numeric columns.
data.frame
A function that takes a data.frame with the same number of columns as target and then returns the mean minimum distance between them.
target
Other helper functions: delayed_with, densify, draw_data, mean_self_proximity, moments_n
delayed_with
densify
draw_data
mean_self_proximity
moments_n
# NOT RUN { 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) # }
Run the code above in your browser using DataLab