Learn R Programming

cgraph (version 3.0.1)

cg_val: Evaluate a Node in the Graph

Description

Evaluate node name in the graph.

Arguments

name

character scalar, name of the node that is evaluated.

Value

R object, the value of the node.

Details

$val(name)

Examples

Run this code
# NOT RUN {
# Initialize a new computational graph.
x <- cgraph$new()

# Add a parameter
a <- x$parm(20, name = "a")

# Evaluate a
x$val(a)

# }

Run the code above in your browser using DataLab