GeoCount: Counting Incidents around Points

Description Usage Arguments Author(s)

View source: R/GeoCount.R

Description

This function calculates the number of incidents (e.g., violent events) within a specified distance around specified points (e.g., villages).

Usage

1
2
3
GeoCount(x, y, distance, x.latitude = "latitude",
         x.longitude = "longitude", y.latitude = "latitude",
         y.longitude = "longitude")

Arguments

x

data frame containing the longitude and the latitude of points.

y

data frame containing the longitude and the latitude of incidents.

distance

numeric. The distance from points in kilometers.

x.latitude

character. The variable name for the latitude in x.

x.longitude

character. The variable name for the longitude in x.

y.latitude

character. The variable name for the latitude in y.

y.longitude

character. The variable name for the longitude in y.

Author(s)

Yuki Shiraito, Department of Political Science, University of Michigan [email protected].


SensitiveQuestions/endorse documentation built on Nov. 7, 2018, 12:27 p.m.