meltt_data | R Documentation |
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.
meltt_data(object, columns = NULL, return_all = FALSE)
object |
object of class |
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. |
meltt_data
returns all unique entries along with specified columns. Function allows for easy extraction all de-duplicated entries.
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
.
Karsten Donnay and Eric Dunford.
Karsten Donnay, Eric T. Dunford, Erin C. McGrath, David Backer, David E. Cunningham. (2018). "Integrating Conflict Event Data." Journal of Conflict Resolution.
meltt
, meltt_duplicates
, meltt_inspect
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.