没有在数据块中生成图形

时间:2018-11-27 13:15:36

标签: r graphics databricks

我正在尝试运行下面的R代码。它会在我的笔记本电脑上生成流程图,但不会在数据块中生成流程图。没有错误产生。关于哪里出了问题或我可以做什么的任何想法?谢谢!

library(dplyr)

library(zoo)

library(bupaR)

library(eventdataR)

library(processmapR)

data(traffic_fines)

# make sure the amount attribute is 
propagated forward in each trace

# using zoo::na.locf instead of tidyr::fill 
#since it is much faster

# still the whole pre-processing is still 
#very slow

library(zoo)

traffic_fines_prepared <- traffic_fines %>%

filter_trace_frequency(percentage = 0.8) %>%

group_by_case() %>%

mutate(amount = na.locf(amount, na.rm = F)) 
%>%

ungroup_eventlog()

process_map(traffic_fines_prepared, 
type_nodes = custom(attribute = "amount", 
units = "EUR"))​

0 个答案:

没有答案