Skip to content

Error in filter_infrequent_flows() #52

Description

@RobertoTCo

Hi,

I've been trying to apply filter_infrequent_flows() function to eliminate those infrequent flows in process discovery. However, everytime I get returned the same error. You can try with the logs 'patients' or 'traffic_lines' (this last one is used as an example in the documentation).

patients %>% filter_infrequent_flows(min_n = 6) %>%process_map()

patients_act %>% filter_infrequent_flows(min_n = 6) %>%process_map()

traffic_fines %>%
     filter_infrequent_flows(min_n = 5) %>%
     process_map()

All of these examples return the same error.

"Error in `mutate()`:
ℹ In argument: `next_act = lead(activity, default = "END_ACT")`.
ℹ In group 1: `case_id = "A1"`.
Caused by error in `lead()`:
! Can't convert from `default` <character> to `x` <factor<e129f>> due to loss of generality.
• Locations: 1"

Is there another workaround I could apply to remove infrequent flows/traces? I think I could get the top most frequent cases (or otherway around) and use it to filter the log, but I should test it first.

The version of the packages I've been working with:
"[1] processcheckR_0.1.4 processmapR_0.5.2 eventdataR_0.3.1 edeaR_0.9.3 bupaR_0.5.3
[6] bupaverse_0.1.0"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions