Description Objects from the NamedTypeTest class Slots Extends Methods Author(s) See Also Examples
These classes are for specifying a test on the type of an object
using the class of that object and comparing it to target class
names. The tests can be either for
x inherits from class name (or is(x, "className"))
or x is an instance of class name (i.e. class(x) ==
"className").
The first of these is represented by InheritsTypeTest
and the second by StrictTypeTest.
Objects can be created for the non-virtual classes
using new("InheritsTypeTest",...)
and new("StrictIsTypeTest",...) or the convenience functions
InheritsTypeTest(...), StrictIsTypeTest(...)
Additionally, where appropriate,
a character vector is coerced to InheritsTypeTest.
.Data:Object of class "character".
This is an internal data type to represent the class names.
It is not to be used directly. It is inherited from the
“character” class.
Class "character", from data part.
Class "ClassNameOrExpression", directly.
Class "vector", by class "character".
signature(from = "character", to =
"NamedTypeTest"):
converts a character vector into a InheritsTypeTest.
Duncan Temple Lang <duncan@wald.ucdavis.edu>
TypedSignature
TypeSpecification-class
DynamicTypeTest-class
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.