phoenix_tables: Scrape, merge, and process Phoenix and ICEWS data into a...

Description Usage Arguments Value Note Author(s)

View source: R/phoenix_tables.R

Description

Scrape, merge, and process Phoenix and ICEWS data into a large data table for aggregation and subsetting.

Usage

1
phoenix_tables(phoenix_loc, icews_loc, update = T)

Arguments

phoenix_loc

folder containing Phoenix data sets as daily .csv data tables. Automatically checks for new data sets each time the function is run, and downloads new daily data as it becomes available. Currently in 'one-and'done' format where it downloads the first time, and checks thereafter.

icews_loc

folder containing ICEWS data sets as daily .tab data tables. Because I don't know how to work a SWORD API, these will need to be manually downloaded and updated.

Value

master_table a data.table object containing ALL merged/processed Phoenix and ICEWS data. One row per event-dyad-day.

Note

This function is still in early development and may contain significant errors. Don't trust it.

Author(s)

Jesse Hammond


jrhammond/phoenixNet documentation built on May 19, 2019, 11:53 p.m.