geocheck: Check geocoded coordinates

Description Usage Arguments Value Examples

Description

Given a data frame of geocoded coordinates, check their locations on the map one by one. The function will show you each point in the data frame one by one. You can move forward and backwards through the points with the "next" and "previous" buttons, which will not save any changes. If a point is correctly geocoded, then clicking "mark correct" will save that information and move on to the next point. If a point is incorrect, click on the map to identify the correct location. When you have identified the correct location, click "move point" to save the new point. Points which have not been marked correct are shown in red; points which have been marked correct are shown in green; points which are being reassigned are shown in blue.

Usage

1
2
geocheck(data, latitude = NULL, longitude = NULL, checked = "checked",
  zoom = NULL, popup_cols = NULL, tile_provider = "Esri.WorldStreetMap")

Arguments

data

A data frame containing latitude and longitude coordinates, and possibly other metadata to identify the geocoded place.

latitude

The name of the column containing latitudes. If NULL, the function will try to guess the correct column.

longitude

The name of the column containing longitudes. If NULL, the function will try to guess the correct column.

checked

The name of the column that keeps track of whether a point has been marked as accurately geocoded or not. If this column already exists, it must contain logical values. If it does not exist, then it will be created. A value of NA means that the row has not been checked, and a value of TRUE means that it has been marked as accurate.

zoom

The level of zoom to use when showing each point. A whole number between 0 and 18.

popup_cols

A character vector of column names. Values from these columns will be displayed in the popup for each point. If NULL, all columns will be used.

tile_provider

The code for a tile provider. See the leaflet package's addProviderTiles function or the Leaflet-providers preview.

Value

The original data frame with a new column indicating which values have been checked with any corrections to latitudes and longitudes.

Examples

1
2
3
4
5
6
## Not run: 
geocheck(geocoded_cities)
geocheck(geocoded_cities, zoom = 8,
         latitude = "latitude", longitude = "longitude")

## End(Not run)

lmullen/geochecker documentation built on May 21, 2019, 7:35 a.m.