Re: [Rd] setGeneric for residuals, etc

2011-01-24 Thread Johann Hibschman
"Janko Thyson" writes: >> I'm experimenting with a few model-fitting classes of my own. I'm >> leaning towards using S4 for my classes, but the R functions I'd want >> to override (residuals, predict, etc.) are all S3 methods. > For example, inside your method for 'residuals()', you will > prob

[Rd] setGeneric for residuals, etc

2011-01-20 Thread Johann Hibschman
I'm experimenting with a few model-fitting classes of my own. I'm leaning towards using S4 for my classes, but the R functions I'd want to override (residuals, predict, etc.) are all S3 methods. As I understand it, I could do setGeneric("residuals"), then add S4 specializations to it. However, I

Re: [Rd] make error for R 2.13.0 (and 2.12.0)

2010-11-05 Thread Johann Hibschman
"Tom \"spot\" Callaway" writes: > Full build log is here: > http://koji.fedoraproject.org/koji/getfile?taskID=2571563&name=build.log > > Default gcc in RHEL 4 is 3.4.6-10, which has g77 rather than gfortran. > It looks like this code no longer compiles properly with g77. > > Thankfully, RHEL 4 al

Re: [Rd] Extract/format/show for S4 objects

2010-06-09 Thread Johann Hibschman
Gabor Grothendieck writes: > The yearqtr class already rounds off automatically to avoid floating > point effects and handles #1 and #2. The main use for all this was so I could use quarters as index columns with data.table, which demands integer storage mode. (This is part of my ongoing attemp

[Rd] Extract/format/show for S4 objects

2010-06-08 Thread Johann Hibschman
Hi all, I'm trying to make an integer-backed quarter (as in fraction of year) class, but I can't quite it to work. I want integer-backed so I don't have to worry about floating-point effects when doing math, and so that I can use it as in data.table. First of all, is there a good reference for t