radius_scan: Find NaTRON locations

Description Usage Arguments Value Examples

View source: R/radius_scan.R

Description

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).

Usage

1
radius_scan(locationTable, conn, radius)

Arguments

locationTable

A dataset containing at least two columns: decimalLongitude and decimalLatitude. Usually you want to put here the loction table returned by location_table().

conn

A connection object with NaTron (see ?natron_connect).

radius

The radius in meters in which to search for preexisting localitites in NaTron.

Value

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'.

Examples

1
2
3
4
5
## Not run: 
myScan <- radius_scan(myLocationTable, myConnection, 8000)
# that's a large radius, 8000 m

## End(Not run)

NTNU-VM/natronbatchupload documentation built on Oct. 12, 2019, 5:49 a.m.