[R] Learning S3

Hadley Wickham hadley at rice.edu
Thu Jun 18 18:06:06 CEST 2009


Hi all,

Do you know of any good resources for learning how S3 works?  I've
some how become familiar with it by reading many small pieces, but now
that I'm teaching it to students I'm wondering if there are any good
resources that describe it completely, especially in a reader-friendly
way.  So far I've found:

 * http://cran.r-project.org/doc/manuals/R-lang.html#Object_002doriented-programming
- it has most of the theory (although some bits are missing), but no
examples

 * page 33 of http://CRAN.R-project.org/doc/Rnews/Rnews_2004-1.pdf
shows how to create a simple object in both S3 and S4

What has helped you learn S3?

Regards,

Hadley

-- 
http://had.co.nz/




More information about the R-help mailing list