strip_object: Removes references to environments.

Description Usage Arguments Details Value

Description

Some objects (e.g. formula, lm) store references to environments in which they were created. This function replaces each such reference with a reference to emptyenv().

Usage

1
2
3

Arguments

obj

Object to be processed.

attr

Is obj an attribute of some other object?

Details

As much as possible, this function tries not to make any copies of the original data. This is because the address of the object might be used to determine whether object's identifier needs to be computed which might be a costly operation.

Value

obj with environment references replaced by emptyenv()


lbartnik/repository documentation built on May 28, 2019, 9:50 a.m.