newInstance.Class | R Documentation |
Creates a new instance of this class. Important: It should always be possible to create a new Object by calling the constructor without arguments. This method is simply calling the constructor method of the class.
## S3 method for class 'Class'
newInstance(this, ...)
... |
Not used. |
Returns a reference to an Object
.
Henrik Bengtsson
newInstance.Object
().
newInstance.BasicObject
().
For more information see Class
.
obj <- newInstance(Object, NA)
# equivalent to
obj <- Object(NA)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.