Skip to content

Operator Overloading in R

2 messages · Mahnoor Malik, Eric Berger

#
I am using R6 class and I have to do operator overloading (+ ,-,*) for a
custom data type . What will be the necessary steps ? I am totally confused
as to what should I do in order to implement this .

Thanks
#
I have experience with R6 classes but I have not used operator overloading
with them.
Out of curiosity I did a quick search and found this link which provides a
step by step (I am not claiming it is the only way)
https://stackoverflow.com/questions/49463235/arithmetic-operators-overload-for-r6classes-in-r

HTH,
Eric
On Wed, Jan 16, 2019 at 4:01 PM Mahnoor Malik <malikmah23 at gmail.com> wrote: