Checks a vector of coordinates x, y to return which are inside a rectangle.
For a much more general function for checking whether points are inside
polygons, use the function splancs::inout()
.
1 | insideRectangle(x, y, xrange, yrange)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.