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
Operator Overloading in R
2 messages · Mahnoor Malik, Eric Berger
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:
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
[[alternative HTML version deleted]]
______________________________________________ R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.