Learn R Programming

cgraph (version 3.0.1)

val: Evaluate a Node in the Graph

Description

Evaluate node name in the active graph.

Usage

val(name)

Arguments

name

character scalar, name of the node that is evaluated.

Value

R object, the value of the node.

Examples

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

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

# Evaluate a
val(a)

# }

Run the code above in your browser using DataLab