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

`filter_throughput_time` fails when using `week` units #23

Closed jgonzale closed 5 years ago

jgonzale commented 5 years ago

Hi.

I'm trying to filter my event log to discard those cases longer than 10 weeks, and I found this situation.

> eventlog_ %>% filter_throughput_time(interval = c(10, NA), units = "week")
Error in mutate_impl(.data, dots) : 
  Evaluation error: invalid units specified.

Otherwise, if I use a different time unit, it works seamlessly.

> eventlog %>% filter_throughput_time(interval = c(10, NA), units = "days")
Event log consisting of:
4480 events
52 traces
684 cases
12 activities
4480 activity instances

# A tibble: 4,480 x 14
[...]

Is there anything I'm doing wrong?

gertjanssenswillen commented 5 years ago

Seems there was a bug here which I just fixed. It should be working now if you install the package from github.