Description Usage Arguments Details Value Author(s) See Also
Filters out events that do not involve specified actors
1 2 | filter_actors(edo, fun = function(x) { TRUE }, which = c("both",
"target", "source", "either"))
|
edo |
Event data |
fun |
function that returns |
which |
Which actor roles should be filtered. Defaults to 'both' ( |
The which parameter specifies whether the filter should be applied
only to actors in the target role, 'target', only to actors in the
source role, 'source', all actors in the event data, 'both',
or to any event having one of the specified actors in eithe rsource or target
role, 'either'.
fun can be specified as a function that returns true for particular actor names,
or as a list of actor names to retain, or a single actor name. The default fun
and the default which settings return the event data unchanged.
Events involving only actors that pass through fun
Will Lowe
filter_codes, filter_time, filter_dyad
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.