Re: [Rd] S4 methods for rbind()

2010-10-26 Thread Robin Hankin
Thank you very much for this Martin. It works! There were two gotchas: 1. One has to add 'deparse.level=1' to the setMethod() function argument list 2. Adding deparse.level=1 increments nargs() ...so the 3 should be 4. But now it works! Best wishes Robin On 26/10/10 13:49, Martin Morga

Re: [Rd] S4 methods for rbind()

2010-10-26 Thread Martin Morgan
On 10/26/2010 03:53 AM, Robin Hankin wrote: > Hello. > > I am trying to write an S4 method for rbind(). I have a class of objects > called 'mdm', and I want to be able to rbind() them to one another. > > I do not want the method for rbind() to coerce anything to an mdm object. > I want rbind(x1,x

[Rd] S4 methods for rbind()

2010-10-26 Thread Robin Hankin
Hello. I am trying to write an S4 method for rbind(). I have a class of objects called 'mdm', and I want to be able to rbind() them to one another. I do not want the method for rbind() to coerce anything to an mdm object. I want rbind(x1,x2,x1,x2) to work as expected [ie rbind() should take any n