gertjanssenswillen / edeaR

!! repository moved to https://github.com/bupaverse/edeaR !! This repo is read-only from now one.
Other
7 stars 10 forks source link

Add method "only" for filter_activivty_presence() #21

Closed serkserk closed 5 years ago

serkserk commented 5 years ago

Hi, I would like to suggest a new parameter option for the filter_activivty_presence() function Currently you can ony show data that pass on all activity from a list or only 1 activity of a list (all or one_off) Adding a third option which filter data that only pass on the listed activites would be very helpfull. Using
filter_activivty_presence(c("A","B","C","D")) will filter a process passing in "A","B","A","C","D" and not show a process passing in "A","B","C","D","E"

gertjanssenswillen commented 5 years ago

Thanks for this suggestion! I though it over and actually added two new methods, "only" and "exact". only keeps cases that consist out of the specified activities (say A B C D), but should not have all of these. exact keeps cases that consist out of exactly the specified activities (i.e. only those and all those; but they can occur more than once and in any order).

image

Hope this is what you are looking for? Then this issue can be closed

serkserk commented 5 years ago

Yes, it's exactly what I need when I work with process variant. Currently I was aggregating the activity list for every case to get data on my variant before creating my logs which was not optimal