View source: R/dbn_visualization.R
acc_successions | R Documentation |
This method processes the vector of node levels to get the position of each node inside the level. E.g. c(1,1,1,2,2,3,4,4,5,5) turns into c(1,2,3,1,2,1,1,2,1,2)
acc_successions(nodes, res = NULL, prev = 0, acc = 0)
nodes |
a vector with the level of each node |
res |
the accumulative results of the sub successions |
prev |
the level of the previous node processed |
acc |
the accumulator of the index in the current sub successions |
the vector of sub successions in each level
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.