read_petrarch: Reads Petrarch event data output files

Description Usage Arguments Details Value Author(s)

View source: R/events.R

Description

Reads Petrach output files and retains only the event date, the main source and target actor codes, and the CAMEO and quad score of the event.

Usage

1
read_petrarch(d, use.quad = FALSE, use.score = FALSE)

Arguments

d

name of a tsv containing events, or a list of such names

Details

Tested on the data sets at http://phoenixdata.org/data. Output column names are 'date', 'source', 'target', 'code' and 'score', if use.score is TRUE

Value

An event data set

Author(s)

Will Lowe


conjugateprior/events documentation built on May 13, 2019, 9:56 p.m.