% proce" /> % proce" /> % proce"/>

Extract from,to and value data from object created with bupaR package

46 Views Asked by At

I use the bupaR package to create a process map like below

library(bupaR)
patients %>%
    process_map(performance(mean, "days"))

perf<-patients %>%
    process_map(performance(mean, "days"))

what I would like to do now it to extract the data from, to and value as I can see them from the object that is created and pass them to a dataframe.

enter image description here

1

There are 1 best solutions below

0
firmo23 On BEST ANSWER

Maybe edges <- attr(perf, "edges"). This will give you a tibble from which you can extract the columns, run head(edges) to see them.