geomerge.assign: Implements different assignment rules using SQL [Auxiliary...

Description Usage Arguments Details Value Author(s) References See Also

View source: R/geomerge.assign.R

Description

Implements assignment of polygon values to the target frame using different assignment rules. For efficient performance implemented using SQL.

Usage

1
geomerge.assign(polygon_input,target,assignment,population.data,optional.inputs)

Arguments

polygon_input

input SpatialPolygonsDataFrame parsed from geomerge main function.

target

SpatialPolygonsDataFrame representing desired units of analysis. See Details of geomerge.

assignment

identification of either population- or area-weighting assignment rules when handling SpatialPolygonsDataFrame joins to target. Default = "max(area)". See Details in geomerge.

population.data

specifies data used for weighting if a population-based assignment rule is selected. See Details in geomerge.

optional.inputs

Any optional inputs compatible with the extract function in raster.

Details

For details on different input parameters, please refer to the detailed documentation in geomerge.

Value

Returns an object of class data.frame that contains the column from input, after proper assignment, that is to be added to [email protected].

Author(s)

Karsten Donnay and Andrew M. Linke.

References

Andrew M. Linke, Karsten Donnay. (2017). "Scale Variability Misclassification: The Impact of Spatial Resolution on Effect Estimates in the Geographic Analysis of Foreign Aid and Conflict." Paper presented at the International Studies Association Annual Meeting, February 22-25 2017, Baltimore.

See Also

geomerge-package, geomerge, generateGrid


geomerge documentation built on Aug. 29, 2017, 1:02 a.m.