read_keds: Read KEDS events file

Description Usage Arguments Details Value Author(s)

Description

Reads a KEDS event data output file

Usage

1
2
  read_keds(d, keep.quote = FALSE, keep.desc = TRUE,
    one.a.day = TRUE, scrub.keds = TRUE)

Arguments

d

Filename

keep.quote

Whether the exact noun phrase be retained

keep.desc

Whether the label for the event code should be retained

one.a.day

Whether to apply the duplicate event remover

scrub.keds

Whether to apply the data cleaner

Details

Reads KEDS output and optionally applies the scrub_keds cleaning function and the one_a_day duplicate removal filter. This function is thin wrapper around read.csv.

This function assumes that output data is a tab separated text file wherein the first field is a date in yymmdd format, the second and third fields are actor codes, the fourth field is an string event code, and the fifth field is a matched noun phrase. The last two fields are optional and can be discarded when reading in.

Value

Event data

Author(s)

Will Lowe


events documentation built on May 2, 2019, 4:45 p.m.