Description Usage Arguments Value Examples
This function uses the decimalLatitude and -Longitude columns from a location table and find the closest existing entries in the NaTron locations datable (within a given radius).
1 | radius_scan(locationTable, conn, radius)
|
locationTable |
A dataset containing at least two columns: decimalLongitude and decimalLatitude. Usually you want to put here the loction table returned by |
conn |
A connection object with NaTron (see |
radius |
The radius in meters in which to search for preexisting localitites in NaTron. |
If there are any positive matches the function returns these as a dataframe with 15 columns. The last three columns (starting with 'new') are from the dataset you entered and for which there was found a match in NaTron. The distance from the entered coordinates and the NaTron location it is compared to is given in 'distance_km'.
1 2 3 4 5 | ## Not run:
myScan <- radius_scan(myLocationTable, myConnection, 8000)
# that's a large radius, 8000 m
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.