Get results from a query to the database

query_icews(query, db_path = find_db())

Arguments

query

SQL query string

db_path

Path to SQLite database file]

Details

query_icews is a wrapper around DBI::dbGetQuery() that will open a connection to the database, submit and return the query results, and then close the database connection.

Examples

if (FALSE) {
query_icews("SELECT count(*) FROM events;")
}