Skip to main content
Article thumbnail
Location of Repository

Overview S4 Classes in 15 pages, more or less

By 

Abstract

The preferred mechanism for object–oriented programming in R is described in Chambers (1998). The actual implementation is slightly different (in some parts influenced by Dylan, (Shalit, 1996)). This document provides a short introduction to programming using these classes and methods. It is worth noting that R also supports an older class system (as described in Chambers and Hastie (1992) but we recommend developing all new programs using the new system and will not refer to the older system further. The object system is class–based with multiple inheritance and generic functions that can dispatch on any set of arguments ( signature). In some sense the concepts of classes and methods are distinct and we will deal with them separately. The final section of this document will deal with documenting classes and methods. Classes A class is defined using setClass. setClass(Class, representation, prototype

Year: 2003
OAI identifier: oai:CiteSeerX.psu:10.1.1.134.4964
Provided by: CiteSeerX
Download PDF:
Sorry, we are unable to provide the full text but you may find it at the following location(s):
  • http://citeseerx.ist.psu.edu/v... (external link)
  • http://www.stat.ucla.edu/~coct... (external link)
  • Suggested articles


    To submit an update or takedown request for this paper, please submit an Update/Correction/Removal Request.