Skip to content
Prev 68705 / 398506 Next

Defining binary indexing operators

If I got it right, in the above example you provided '$' is defined as a 
method for a S3 class. How is it possible to do the same with a S4 class. If 
this is not possible, what is the best way to define the '$' operator whose 
first arguments is a S4 object and doesn't overwrite the global definition?