Auxiliary function that performs the actual integration of the target
frame with specified input data. The routine proceeds on dataset at a time.
geomerge.merge(data,data.name,target,standard.CRS,outdata,wghts,
time, time.lag,spat.lag,zonal.fun,assignment,
population.data,point.agg, t_unit,silent,optional.inputs)
Returns an object of class data.frame
that contains all information from merger to target
to be added to target@data
in the main geomerge
function. The documentation in geomerge
provides a detailed overview over the columns returned and their naming conventions
input dataset. See Details in geomerge
.
name of input dataset
SpatialPolygonsDataFrame
representing desired units of analysis. See Details in geomerge
.
Defines the CRS used. Default used in geomerge
is WGS84.
data.frame
containing integrated data relative to the SpatialPolygonsDataFrame
target
.
spatial weights calculated by link{geomerge.neighbor}
.
specification of temporal window for temporal binning of point data by c(start_date, end_date, interval_length)
. Default = NA. See Details in geomerge
.
Boolean indicating whether or not first and second order temporal lag values of all variables are returned. Default = TRUE.
Boolean indicating whether or not first and second order spatial lag values of all variables are returned. Default = TRUE.
object of class function applied to values of SpatRaster
when generating zonal statistics for each target polygon. Default = sum. See Details in geomerge
.
identification of either population- or area-weighting assignment rules when handling SpatialPolygonsDataFrame
joins to target
. Default = "area.assign". See Details in geomerge
.
specifies data used for weighting if a population-based assignment
rule is selected. See Details in geomerge
.
specification of aggregation format for data of type SpatialPointsDataFrame
. Default = "cnt". See Details in geomerge
.
temporal unit used for dynamic point aggregation. Default = "days".
Boolean switch to suppress any (non-critical) warnings and messages. Default = FALSE.
Any optional inputs compatible with the extract
function in terra.
Karsten Donnay and Andrew M. Linke.
For details on different input parameters, please refer to the detailed documentation in geomerge
.
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.
geomerge-package
, geomerge
, generateGrid