set_parent: Set Parent of an RStatic Object

Description Usage Arguments Details

View source: R/copy.R

Description

This function sets the parent field for the given RStatic object or list of RStatic objects.

Usage

1
set_parent(node, parent)

Arguments

node

The object on which to set the parent.

parent

The new parent for node.

Details

If node is an RStatic object, then set_parent(node, parent) is equivalent to node$parent = parent.

If node is a list, set_parent is called on each element.


nick-ulle/ast documentation built on July 17, 2018, 4:16 a.m.