Learn R Programming

events (version 0.5)

filter_codes: Discard all but relevant event codes

Description

Discards all but relevant event codes

Usage

filter_codes(edo, fun = function(x) { return(TRUE) })

Arguments

edo
Event data
fun
Function that returns TRUE or event codes that should not be discarded

Value

Event data containing only events that pass through fun

Details

Applies the filter function to each event code to see whether to keep the observation.

See Also

filter_actors, filter_time