filter_actors: Discard all but elevant actors

Description Usage Arguments Details Value Author(s) See Also

Description

Discards all but relevant actors

Usage

1
2
  filter_actors(edo, fun = function(x) {     return(TRUE)
    }, which = c("both", "target", "source"))

Arguments

edo

Event data

fun

Function that returns TRUE for actor codes that should not be discarded.

which

What actor roles should be filtered

Details

The which parameter specifies whether the filter should be applied only to targets, only to sources, or to all actors in the event data.

Value

Event data containing only actors that pass through fun

Author(s)

Will Lowe

See Also

filter_codes, filter_time


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