get_CAMEO_count: Get the count of events based on CAMEO codes.

Description Usage Arguments Details

Description

get_CAMEO_count returns the count of all the events that have a specified CAMEO code

Usage

1
2
get_CAMEO_count(conn, cameo.codes, date = NULL, source.country = NULL,
  target.country = NULL)

Arguments

conn

A MySQL connection to the ICEWS database. Supply your credentials to conn <- dbConnect(MySQL(), user="username", password="password", dbname="event_data", host="our.host.ip")

cameo.codes

A string vector of the CAMEO codes

date

A string in the YYYYMMDD format. If NULL, will count events on any date

source.country

A string specifying the ISOA3Code of the source country. If NULL, will count events from all countries

target.country

A string specifying the ISOA3Code of the target country. If NULL, will count events targeted at all countries

Details

This function takes one (or several) CAMEO codes, a date, and two vectors for source and target countries. It will return the count of events that have the specified CAMEO code and that happen between the source and target countries on the given date.


LaDilettante/icewsr documentation built on May 8, 2019, 7:59 p.m.