meltt.match {meltt}R Documentation

Performing iterative comparison and matching [Auxiliary Function]

Description

Auxiliary function that generates an R wrapper around the main python function used to process the numerical matrix generated in meltt. Returns a summary of matched entries.

Usage

meltt.match(data, twindow, spatwindow, smartmatch, certainty, k,
	    secondary, partial, weight, episodal, silent)

Arguments

data

numerical matrix passed from meltt.transform.

twindow

specification of temporal window in unit days passed from meltt.

spatwindow

specification of a spatial window in kilometers passed from meltt.

smartmatch

implement matching using all available taxonomy levels. When FALSE, matching will occur only on a specified taxonomy level passed from meltt.

certainty

specification of the the exact taxonomy level to match on when smartmatch = FALSE passed from meltt.

k

number of taxonomies passed from meltt.

secondary

vector of the number of taxonomy levels for each taxonomy passed from meltt.

partial

specifies whether matches along less than the full taxonomy dimensions are permitted. Passed from meltt.

weight

relative weight of each taxonomy in the calculation of the matching score. Passed from meltt.

episodal

boolean for wether normal or episodal matches are performed. Automatically determined and passed from meltt.

silent

Boolean specifying whether or not messages are displayed. Passed from meltt.

Details

Main auxiliary wrapper function that passes the processed data matrix from meltt to the python code used to manage the matching procedure.

Value

Returns a list object containing output of matching entries and a matrix of optimal selected matches.

Note

meltt.match requires the Python package NumPy to run. The package automatically checks whether NumPy is installed at runtime and returns an error if it is not.

Author(s)

Karsten Donnay and Eric Dunford.

References

Karsten Donnay, Eric T. Dunford, Erin C. McGrath, David Backer, David E. Cunningham. (2018). "Integrating Conflict Event Data." Journal of Conflict Resolution.

See Also

meltt


[Package meltt version 0.4.3 Index]