Learn R Programming

events (version 0.5)

filter_actors: Discard all but elevant actors

Description

Discards all but relevant actors

Usage

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

Value

Event data containing only actors that pass through fun

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.

See Also

filter_codes, filter_time