getInstanceOf.Arguments
From R.utils v1.6.1
by Henrik Bengtsson
Gets an instance of the object that is of a particular class
Gets an instance of the object that is of a particular class.
- Keywords
- methods, internal, programming
Usage
Arguments$getInstanceOf(object, class, coerce=FALSE, ..., .name=NULL)
Arguments
- object
- The object that should be returned as an instance of
class
class
. - class
- A
character
string specifying the name of the class that the returned object should inherit from. - coerce
- If
TRUE
and the object is not of the wanted class, then method will be coerced to that class, if possible. Otherwise, an error is thrown. - ...
- Not used.
- .name
- A
character
string for name used in error messages.
Value
- Returns an object inheriting from class
class
.
synopsis
getInstanceOf.Arguments(static, object, class, coerce=FALSE, ..., .name=NULL)
See Also
For more information see Arguments
.
Community examples
Looks like there are no examples yet.