cg_sum {cgraph}R Documentation

Sum of Vector Elements

Description

Calculate sum(x).

Usage

cg_sum(x, name = NULL)

Arguments

x

either a cg_node object or a numeric vector or array.

name

character scalar, name of the operation (optional).

Value

cg_operator object, node of the operation.

Note

In contrast to the base sum function, this function only accepts a single argument.

Function sum is called without changing the default value of argument na.rm.

Author(s)

Ron Triepels

See Also

sum


[Package cgraph version 4.0.3 Index]