recursive_graph_join: Recursively join a list of tidygraphs

Description Usage Arguments Value Examples

View source: R/recursive_graph_join.R

Description

Joins the graphs into a single graph. This recursively implementes tidygraph::graph_join()

Usage

1
recursive_graph_join(grs, by = "name")

Arguments

grs

a list of tidygraph objects

by

what to group by (passed to tidygraph::graph_join())

Value

a single tidygraph object

Examples

1
2
3
4
5
6
7
set.seed(0)

gr_list <- purrr::map(c(10, 15, 20), quick_forestfire)
gr <- recursive_graph_join(gr_list)
gr

plot(gr)

jhrcook/jhcutils documentation built on Sept. 2, 2020, 7:16 a.m.