| chain_graphs {mlr3pipelines} | R Documentation |
Chain a Series of Graphs
Description
Takes an arbitrary amount of Graphs or PipeOps (or objects that can be automatically
converted into Graphs or PipeOps, see as_graph() and as_pipeop()) as inputs and joins
them in a serial Graph, as if connecting them using %>>%.
Care is taken to avoid unnecessarily cloning of components. A call of
chain_graphs(list(g1, g2, g3, g4, ...), in_place = FALSE) is equivalent to
g1 %>>% g2 %>>!% g3 %>>!% g4 %>>!% ....
A call of chain_graphs(list(g1, g2, g3, g4, ...), in_place = FALSE)
is equivalent to g1 %>>!% g2 %>>!% g3 %>>!% g4 %>>!% ... (differing in the
first operator being %>>!% as well).
Usage
chain_graphs(graphs, in_place = FALSE)
Arguments
graphs |
|
in_place |
( |
Value
Graph the resulting Graph, or NULL if there are no non-null values in graphs.
See Also
Other Graph operators:
%>>%(),
as_graph(),
as_pipeop(),
assert_graph(),
assert_pipeop(),
greplicate(),
gunion(),
mlr_graphs_greplicate