[R] Operator overloading

Tine tine.mlac at academa.si
Thu Jul 10 10:54:36 CEST 2008


Hi!

I was just wondering is there anyway to overload operator for custom class.
For example:
I have two matrices A and B with same dimensions. I want to overload 
operator '+' with my own function.
Or even better can I create my own (new) operator.
Example:
A+-B where '+-' would be some function.

bye,
  Tine



More information about the R-help mailing list