Learn R Programming

cgraph (version 3.0.1)

cg_add_parms: Add Parameters

Description

Add parameters to the graph.

Arguments

...

numeric vectors or arrays, the values of the parameters. Is ignored when parms is not NULL.

parms

named list, the parameters that are to be added to the graph.

Value

nothing.

Details

$add_parms(..., parms = NULL)

Examples

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

# Add some parameters.
x$add_parms(prm1 = 1, prm2 = 2, prm3 = 3)

# List the parameters.
x$get_parms()

# }

Run the code above in your browser using DataLab