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



Search within the events package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.