Description Usage Arguments Value Author(s) See Also Examples
Takes latitude and longitude values, as well as an extent object (generated dynamically by the user) and returns the indices of the points that fall within the extent.
1 | SpatialSubset(latitude, longitude, e)
|
latitude |
the latitude coordinates of points to be subset. |
longitude |
the longitude coordinates of points to be subset. |
e |
the extent for the subsetting. This should come from creating an extent dynamically, through |
A list of indices of points in the input set that were within the spatial extent.
Amelia McNamara
1 2 3 4 5 6 7 | lat = runif(10, 32, 42)
lon = runif(10, -124, -114)
MakeMap(lat, lon)
# Dynamically generate extent using the drawExtent() function
e = drawExtent()
SpatialSubset(lat, lon, e)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.