[R] S3 vs S4 class

Terry Therneau therneau at mayo.edu
Tue Oct 7 16:41:46 CEST 2008

  A simple example:
  	temp <- as.Date('2001-10-5')

How do I tell if "Date" is implemented as an S3 or an S4 class type?
I tried ?class, but didn't see anything obvious.  Functions like inherit() work
equally well with both types (which is a good thing).

  I expect the answer will be obvious - once someone points it out to me.

	Terry T

More information about the R-help mailing list