collect_leaves: Collect symbol leaves

View source: R/collect_leaves.R

collect_leavesR Documentation

Collect symbol leaves

Description

Collect symbol leaves

Usage

collect_leaves(dag)

Arguments

dag

in which same symbol leaves should be collected

Examples

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)
}


mikldk/taldi documentation built on March 26, 2022, 1:47 a.m.