Learn R Programming

cgraph (version 3.0.1)

input: Add Input

Description

Add an input node to the active graph.

Usage

input(value = NULL, name = NULL)

Arguments

value

numeric vector or array, value of the node (optional).

name

character scalar, name of the node (optional). In case argument name is missing, the node is tried to be added to the graph under an auto-generated name.

Value

cg_node, input.

Examples

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

# Add an input with name 'x' to the graph.
input(name = "x")

# }

Run the code above in your browser using DataLab