Basic usage and sync

Basic functionality for downloading ICEWS data from dataverse.

icews icews-package

Get ICEWS Event Data

dr_icews()

What's the current state of things?

update_icews()

Update database and files

download_data() download_icews()

Download ICEWS data files

download_docs()

Download documentation

read_icews()

Read ICEWS events into memory

query_icews()

Query ICEWS

Setup and options

Setup and check option values.

setup_icews() unset_icews_opts() get_icews_opts()

Setup ICEWS options

dataverse_api_token()

Dataverse API token

Interacting with DVN

Working with DVN

get_doi()

Get ICEWS dataverse DOI

get_dvn_manifest()

List dataverse files

download_file()

Download a single file from Dataverse

Interacting with the database

Helpers for interacting with the database, if used.

find_raw() find_db() find_docs()

Find locations

connect()

Connect to local ICEWS database

query_icews()

Query ICEWS

list_source_files()

List of ingested source files

get_db_state() get_dvn_state() get_local_state()

Get DVN/local file/database state

read_icews()

Read ICEWS events into memory

sync_db_with_files()

Synchronize DB with raw files

Interacting with local raw data files

Working with local copies of the data files

find_raw() find_db() find_docs()

Find locations

list_local_files()

List the raw data file paths

get_db_state() get_dvn_state() get_local_state()

Get DVN/local file/database state

download_data() download_icews()

Download ICEWS data files

read_events_tsv()

Read events TSV

read_icews()

Read ICEWS events into memory

Data helpers

Various helpers for working with the ICEWS event data

connect()

Connect to local ICEWS database

query_icews()

Query ICEWS

read_icews()

Read ICEWS events into memory

icews_to_gwcode()

Translate country to G&W country codes

Data

Package data, including a sample of the ICEWS event data.

cameo_codes

CAMEO code dictionary

goldstein_mappings

CAMEO event Goldstein scores

icews_sample

ICEWS event data sample

Cleaning up

Destructive functions to remove all or portions of the data and database.

burn_it_down()

Remove all data

purge_db() remove_db()

Purge or delete ICEWS database

purge_data_files()

Purge file downloads