meltt_data: Returns de-duplicated entries from meltt output.

View source: R/meltt_data.R

meltt_dataR Documentation

Returns de-duplicated entries from meltt output.

Description

meltt_data returns all unique, de-duplicated entries across all input datasets. Function provides a dataset where all overlapping, duplicate entries are removed, offering a version of the input data with no redundancies.

Usage

meltt_data(object, columns = NULL, return_all = FALSE)

Arguments

object

object of class meltt.

columns

string vector referencing column names located in the input data. Default is to return all location, time stamp, and taxonomy columns the data was evaluated on.

return_all

Boolean specifying whether all columns in any of the original data should be returned. Default = FALSE.

Details

meltt_data returns all unique entries along with specified columns. Function allows for easy extraction all de-duplicated entries.

Value

Returns an data.frame where the first columns contains the name of the original input data object from which the data entry was drawn, and a unique event ID. The subsequent columns are all columns specified in the columns argument, or location, time stamp, and taxonomy columns the data was evaluated on columns = NULL.

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, meltt_duplicates, meltt_inspect

Examples


data(crashMD)
output = meltt(crash_data1, crash_data2, crash_data3,
                taxonomies = crash_taxonomies, twindow = 1, spatwindow = 3)
dataset = meltt_data(output, column = c("date", "longitude", "latitude"))
head(dataset)

# Return all original columns
dataset = meltt_data(output, return_all = TRUE)


meltt documentation built on Oct. 27, 2022, 1:05 a.m.