Description Usage Arguments Details Value Examples
View source: R/spatial_search.R
spatialsearch
returns the data that falls within radius given radius,
and latitude and longitude coordinates.
1 | spatial_search(df, lat, lon, r)
|
df |
A dataframe in FishNet2 standard format (by using read.csv()) |
lat |
Latitude coordinate |
lon |
Longitude coordinate |
r |
Radius in kilometers |
This is a function to filter data given in the format of a csv file from FishNet2. For this to work properly, the dataframe must have column names using names given in standard csv format from FishNet2 website.
Rows in file that fall within circle with center (lat,long) and radius r
1 2 3 4 5 6 | spatial_search(ictaluridae, 36.12, -77.63, 1)
## Not run:
spatial_search(ictaluridae, -173,44,10)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.