filter_codes: Discard all but relevant event codes

Description Usage Arguments Details Value Author(s) See Also

View source: R/events.R

Description

Discards all but relevant event codes

Usage

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

Arguments

edo

Event data

fun

Function that returns TRUE for event codes that should not be discarded, or single event code, or a vector of them.

Details

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

Value

Event data containing only events that pass through fun

Author(s)

Will Lowe

See Also

filter_actors, filter_time


conjugateprior/events documentation built on May 13, 2019, 9:56 p.m.