GeoCount: Counting Violent Incidents around Villages

Description Usage Arguments Author(s)

View source: R/GeoCount.R

Description

This function calculates the number of violent incidents within a specified distance around specified points (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 villages.

y

data frame containing the longitude and the latitude of violent incidents.

distance

numeric. The distance from villages 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)

Kosuke Imai, Department of Politics, Princeton University kimai@Princeton.Edu, http://imai.princeton.edu

Yuki Shiraito, Department of Politics, Princeton University shiraito@Princeton.Edu.



endorse documentation built on May 19, 2017, 9:38 p.m.
Search within the endorse package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.