Learn R Programming

rgp (version 0.4-1)

exprChildrenOrEmptyList: Return the Children of an Expression or the Empty List if there are None

Description

Internal tool function that returns the children expressions of an R expression or the empty list if there are no children, i.e. if the expression is atomic or NULL. If the expression is a "function" expression, i.e. an expression that would evaluate to a function, exprChildrenOrEmptyList will return the function body expression as the only child.

Usage

exprChildrenOrEmptyList(expr)

Arguments

expr
The expression to return the children for.

Value

The expression's children as a list, or the empty list if there are none.