Re: [R] Overloading in R

2009-02-15 Thread Martin Morgan
Hi Shrikanth -- SHRIKANTH SHANKAR writes: > I have been trying to write a new class that reimplements the vector > class. As a test of my overloading I decided to try and and call > t.test on two vectors which were objects of my class rather than the > default class. > > The overloaded length I

[R] Overloading in R

2009-02-14 Thread SHRIKANTH SHANKAR
I have been trying to write a new class that reimplements the vector class. As a test of my overloading I decided to try and and call t.test on two vectors which were objects of my class rather than the default class. The overloaded length I wrote seems to work correctly. I used setMethod("length