Learn R Programming

R.oo (version 1.26.0)

newInstance.Object: 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 Object
newInstance(this, ...)

Value

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

Arguments

...

Arguments passed to the constructor of the corresponding Object class.

Author

Henrik Bengtsson

See Also

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