Re: [Rd] S3 vs S4 classes

2007-02-17 Thread John Chambers
Rossi, Peter E. wrote: > > I have developed a package, bayesm, which uses existing classes of > objects. I would like > to add a new class corresponding to objects from this package. > > I have been reading about classes and all sources tell me that I should > use > so-called "new" or S4 classes

Re: [Rd] S3 vs S4 classes

2007-02-17 Thread Prof Brian Ripley
On Sat, 17 Feb 2007, Rossi, Peter E. wrote: > I have developed a package, bayesm, which uses existing classes of > objects. I would like to add a new class corresponding to objects from > this package. > > I have been reading about classes and all sources tell me that I should > use so-called

[Rd] S3 vs S4 classes

2007-02-17 Thread Rossi, Peter E.
I have developed a package, bayesm, which uses existing classes of objects. I would like to add a new class corresponding to objects from this package. I have been reading about classes and all sources tell me that I should use so-called "new" or S4 classes. However, a major purpose of definin