Filter using declarative rules.
This function can be used to filter event data using declaritive rules. It needs an event log and a rule. Rules can be made with the following functions: absent(), and(), contains(), contains_between(), contains_exactly(), ends(), precedence(), response(), responded_existence(), starts(), succession(), xor().
filter_rules(eventlog, ...)
eventlog |
Eventlog object |
... |
rules |
A filtered event log.
library(eventdataR) # Filter where Blood test precedes MRI SCAN and Registration is the start of the case. filter_rules(patients, precedence("Blood test","MRI SCAN"), starts("Registration"))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.