This function calculates the number of incidents (e.g., violent events) within a specified distance around specified points (e.g., villages).
GeoCount(x, y, distance, x.latitude = "latitude",
x.longitude = "longitude", y.latitude = "latitude",
y.longitude = "longitude")
data frame containing the longitude and the latitude of points.
data frame containing the longitude and the latitude of incidents.
numeric. The distance from points in kilometers.
character. The variable name for the latitude in x
.
character. The variable name for the longitude in x
.
character. The variable name for the latitude in y
.
character. The variable name for the longitude in y
.