edges2tree: Convert Edge List To Data Frame With Tree Structure

Description Usage Arguments Examples

View source: R/edges2tree.R

Description

This helper function inputs an edge list and converts it into a data frame where the whole tree structure can be seen.

Usage

1
edges2tree(edges, lvl1deps)

Arguments

edges

An edge list as a data frame, first column: starting points, second columns: end points

lvl1deps

The packages that should be at the first level (at the roots) of the tree structure

Examples

1
2
3
4
edgelist <- data.frame(start = c("shiny", "shiny", "htmltools"),
   end = c("jsonlite", "htmltools", "digest"))
lvl1deps <- "shiny"
edges2tree(edgelist, lvl1deps)

falo0/dstr documentation built on May 25, 2019, 4:26 p.m.