Search code examples
rbupar

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


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


Solution

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