powered by
Change the value of node name in the graph.
name
character scalar, name of the node that is changed.
R object, new value of the node.
nothing.
$set(name, value)
# NOT RUN { # Initialize a new computational graph. x <- cgraph$new() # Add a parameter a <- x$parm(20, name = "a") # Change value of a x$set(a, 40) # Evaluate a x$val(a) # }
Run the code above in your browser using DataLab