Description Usage Arguments Examples
View source: R/format-conversions.R
Convert a dataframe of edges (from, to) into a parent df (parent, node)
1 | graph_convert_edgelistdf_to_parentdf(edges_df)
|
edges_df |
a dataframe with 'from' and 'to' columns with node names as values. To be convertible, each node should have a single parent. |
1 2 | ghg_edges_df <- read_csv("data-raw/ghg_cats_edges.csv")
graph_convert_edgelistdf_to_parentdf(ghg_edges_df)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.