R/blockTreeToList.R

"blockTreeToList" <-
function (tree) 
{
    result <- list(tree$block)
    if (!is.null((tree$sub.blocks))) 
        for (i in 1:length(tree$sub.blocks)) result <- append(result, 
            blockTreeToList(tree$sub.blocks[[i]]))
    class(result) <- "dg.BlockList"
    return(result)
}

Try the dynamicGraph package in your browser

Any scripts or data that you put into this service are public.

dynamicGraph documentation built on May 2, 2019, 6:38 a.m.