bupaverse / edeaR

Exploratory and descriptive analysis of event based data.
https://bupaverse.github.io/edeaR/
Other
12 stars 3 forks source link

Error in UseMethod("rescale") : no applicable method for 'rescale' applied to an object of class "difftime" #37

Closed th72 closed 2 years ago

th72 commented 2 years ago

Hi,

I got this error when I try to calculate idle_time / processing_time on the "case" level en try to plot it.

processing_time(salariswijziging, level="case", units = "days") # %>% plot()

There is output from processing_time:

naam processing_time

1 ######### 88.07454 days 2 ######### 71.51288 days 3 ######### 71.01331 days 4 ######### 67.00580 days 5 ######### 66.32168 days 6 ######### 66.27387 days 7 ######### 66.23900 days 8 ######### 60.21536 days 9 ######### 59.75009 days But plotting results in a error. salariswijziging # Log of 422 events consisting of: 3 traces 33 cases 211 instances of 9 activities 58 resources Events occurred from 2022-01-20 14:56:56 until 2022-06-15 11:04:24 # Variables were mapped as follows: Case identifier: naam Activity identifier: taak Resource identifier: door Activity instance identifier: activity_instance_id_by_bupar Timestamp: timestamp Lifecycle transition: lifecycle_id # A tibble: 422 × 8 type naam taak door .order activ…¹ lifec…² timestamp 1 Salariswijziging (Profit ########g… JMS … Lied… 1 1 start 2022-01-20 14:56:56 2 Salariswijziging (Profit) ######## Cont… Patr… 2 2 start 2022-01-20 14:56:57 3 Salariswijziging (Profit) ######## Beve… Andy… 3 3 start 2022-01-26 12:51:18 4 Salariswijziging (Profit) ######## Beve… Jess… 4 4 start 2022-01-26 12:51:18 5 Salariswijziging (Profit) ######## Brie… Suze… 5 5 start 2022-02-01 11:54:27 6 Salariswijziging (Profit) ######## Beve… Jess… 6 6 start 2022-02-02 13:39:09 7 Salariswijziging (Profit) ######## Vraa… Lied… 7 7 start 2022-02-03 10:29:52 8 Salariswijziging (Profit) ######## Aanp… Lied… 8 8 start 2022-02-08 10:13:03 9 Salariswijziging (Profit) ######## Cont… Lied… 9 9 start 2022-02-08 15:04:57 10 Salariswijziging (Profit) ########… Beoo… Lied… 10 10 start 2022-02-15 10:11:54 # … with 412 more rows, and abbreviated variable names ¹​activity_instance_id_by_bupar, # ²​lifecycle_id # ℹ Use `print(n = ...)` to see more rows Do you have any idea? Greetings Tim
gertjanssenswillen commented 2 years ago

Issue is solved in master branch. Will be released in a couple of days on CRAN. Thx for notifying

th72 commented 2 years ago

Thanks Gert and Gerard (dank je wel!) for solving this issue.