Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are S1 and S2 classes?

Tags:

oop

r

r-s3

r-s4

In R there are S3, S4 and with R 2.12, reference classes (unofficially called S5 classes).

Is there such a thing as a S1 (or S2) class? If so, what are they? If not, why start with S3?

like image 361
csgillespie Avatar asked Jan 17 '11 10:01

csgillespie


1 Answers

R is developed from the S-language, a statistical language developed at the Bell Labs. S3 refers to the third version of S. The syntax of R is largely based on this version of S, and hence the classes were called S3. In R, there have never been S1 and S2 classes. And as Gavin said, neither in S. Object-orientation only started in the third version.

A brief history by Chambers

a paper on the history by Ihaka

like image 196
Joris Meys Avatar answered Oct 31 '22 21:10

Joris Meys