Skip to content
Prev 10178 / 63424 Next

s4 methods and base

On Wed, 6 Aug 2003, Marsland, John wrote:

            
That is an inappropriate use of getClass with S3 classes.  It's perhaps an 
inconsistency in the methods package, but it is not in base.
POSIXt is not an S4 class, and that was written before there were S4
classes in R.
Well, I would have preferred class = c("POSIXct", "POSIXt"), but it was
not possible to add POSIXt that way (it was not in the first released
implementation).  Changing S4 classes is a nightmare, BTW.


As I said before, please do learn the difference between S3 and S4
classes, and that `class' and `method' (unqualified) normally mean S3.