View source: R/collect_leaves.R
collect_leaves | R Documentation |
Collect symbol leaves
collect_leaves(dag)
dag |
in which same symbol leaves should be collected |
symlist <- infer_ast("cos(2*x1 + x2) + x2^2") dag <- make_dag(symlist) if (interactive()) { plot(dag) } dag2 <- collect_leaves(dag) if (interactive()) { plot(dag2) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.