is_distance_at_least | R Documentation |
The function calculated all pairwise distances and checks if the are larger or equal.
is_distance_at_least(position, min_distance)
position |
tibble |
min_distance |
Minimum distance to be present between each pair |
TRUE if all distances are larger than 'min_distance'
example_pos <- tibble::tibble(object = 1:8, x = 1:8, y = 4 - (1:8)) is_distance_at_least(example_pos, 1) is_distance_at_least(example_pos, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.