%eq% | R Documentation |
The equals to operator
x %eq% y
x |
Object. |
y |
Another object. |
A Boolean value.
AGE <- new_class(class_name = "AGE")
age <- AGE$instantiate
register_method(AGE, ..init.. = function(current) self$current = current)
register_method(AGE, ..eq.. = function(y) self$current == y$current)
patrick <- age(33)
james <- age(33)
patrick %eq% james
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.