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 Oct. 18, 2019, 4:37 a.m.