is_in_zone | R Documentation |
Function to tell if a point is in a delimited zone or not.
is_in_zone(border, target)
border |
A dataframe that contains the coordinates of the points that delimit the zone (a square for example) |
target |
The coordinates of the points you want to check if it is in the zone |
A logical to tell if the point is in the zone
square <- data.frame(x = c(1,1,2,2), y = c(1,2,2,1))
is_in_zone(square, c(1.5,1.5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.