Description Usage Arguments Details Value Author(s) See Also Examples
Duck typing is a way to emulate type checking by virtue of an object's characteristics as opposed to strong typing.
1 2 3 | argument %isa% type
argument %hasa% property
argument %hasall% property
|
argument |
An object to inspect |
type |
A type name |
property |
A property of an object |
These operators provide a convenient method for testing for specific properties of an object.
%isa%
checks if an object is of the given type.
%hasa%
checks if an object has a given property. This can
be any named element of a list or data.frame.
Boolean value indicating whether the specific test is true or not.
Brian Lee Yung Rowe
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.