cg_prod {cgraph}R Documentation

Product of Vector Elements

Description

Calculate prod(x).

Usage

cg_prod(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 prod function, this function only accepts a single argument.

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

Author(s)

Ron Triepels

See Also

prod


[Package cgraph version 4.0.3 Index]