newInstance.Object: Creates a new instance of the same class as this object

newInstance.ObjectR Documentation

Creates a new instance of the same class as this object

Description

Creates a new instance of the same class as this object.

Usage

## S3 method for class 'Object'
newInstance(this, ...)

Arguments

...

Arguments passed to the constructor of the corresponding Object class.

Value

Returns a reference to an instance of Object or a subclass thereof.

Author(s)

Henrik Bengtsson

See Also

newInstance.Class(). newInstance.BasicObject(). For more information see Object.


HenrikBengtsson/R.oo documentation built on Jan. 31, 2024, 9:06 a.m.