S (programming language) explained

S
Paradigm:Multi-paradigm

imperative, object oriented

Developer:Rick Becker, Allan Wilks, John Chambers, William S. Cleveland, Trevor Hastie
Typing:dynamic, strong
Implementations:S-PLUS
Influenced By:C, APL, PPL, Fortran
Influenced:R
License:depends on implementation
Garbage Collection]]:yes-->

S is a statistical programming language developed primarily by John Chambers and (in earlier versions) Rick Becker, Trevor Hastie, William Cleveland and Allan Wilks of Bell Laboratories. The aim of the language, as expressed by John Chambers, is "to turn ideas into software, quickly and faithfully".[1] It is widely used by academic researchers.[2]

A major implementation of S is S-PLUS, a commercial product that was formerly sold by TIBCO Software.

The modern R, a part of the GNU free software project, was based on S[3] and can run many S programs, although it is not fully backwards compatible.[4]

History

"Old S"

S is one of several statistical computing languages that were designed at Bell Laboratories, and first took form between 1975–1976. Up to that time, much of the statistical computing was done by directly calling Fortran subroutines; however, S was designed to offer an alternate and more interactive approach, motivated in part by exploratory data analysis advocated by John Tukey. Early design decisions that hold even today include interactive graphics devices (printers and character terminals at the time), and providing easily accessible documentation for the functions.

Development of the project was led by John Chambers and Trevor Hastie, and included developers Richard Becker, Allan Wilks, John Chambers, and William Cleveland,[5] all of whom were then employees of AT&T.[6] Out of the developers who contributed to S, Chambers is generally agreed to be the most significant contributor. Chambers received the Software System Award from the Association for Computing Machinery for his work on S.[7]

The first working version of S was built in 1976, and operated on the GCOS operating system. At this time, S was unnamed, and suggestions included ISCS (Interactive SCS), SCS (Statistical Computing System), and SAS (Statistical Analysis System) (which was already taken: see SAS System). The name 'S' (used with single quotation marks until 1979) was chosen, as it was a common letter in the suggestions and consistent with other programming languages designed from the same institution at the time (namely the C programming language). It stands for the word "statistics".[8]

When UNIX/32V was ported to the (then new) 32-bit DEC VAX, computing on the Unix platform became feasible for S. In late 1979, S2 was ported from GCOS to UNIX, which would become the new primary platform.[9]

In 1980 the first version of S was distributed outside Bell Laboratories and in 1981 source versions were made available. S was distributed freely in academic circles, and became popular among academic statisticians.[10] In 1984 two books were published by the research team at Bell Laboratories: S: An Interactive Environment for Data Analysis and Graphics[11] (1984 Brown Book) and Extending the S System.[12] Also, in 1984 the source code for S became licensed through AT&T Software Sales for education and commercial purposes.

"New S"

The first version of S-PLUS was released by Statistical Sciences, Inc. in 1988. S-PLUS was later sold to TIBCO Software. By this time, many changes were made to S and the syntax of the language with the release of S3. The New S Language[13] (1988 Blue Book) was published to introduce the new features, such as the transition from macros to functions and how functions can be passed to other functions (such as apply). Many other changes to the S language were to extend the concept of "objects", and to make the syntax more consistent (and strict). However, many users found the transition to New S difficult, since their macros needed to be rewritten. Many other changes to S took hold, such as the use of X11 and PostScript graphics devices, rewriting many internal functions from Fortran to C, and the use of double precision (only) arithmetic. The New S language is very similar to that used in modern versions of S-PLUS and R.

The graphical user interface of S was also updated interactive graphical features after integration with Axum.

In 1991, Statistical Models in S[14] (1991 White Book) was published, which introduced the use of formula-notation[15] (which use the ~ operator), data frame objects, and modifications to the use of object methods and classes.

S4

The latest version of the S standard is S4, released in 1998.[16] It provides advanced object-oriented features. S4 classes differ markedly from S3 classes; S4 formally defines the representation and inheritance for each class, and has multiple dispatch: the generic function can be dispatched to a method based on the class of any number of arguments, not just one.[17]

See also

External links

Notes and References

  1. Book: Chambers, John M. Programming with Data: A Guide to the S Language. Springer. 1998. 978-0-387-98503-9.
  2. Web site: S-Plus: An Introduction . 2024-02-28 . www.stat.rice.edu.
  3. Book: Ashwani . Kumar . Advancements in Security and Privacy Initiatives for Multimedia Images . Satyanarayana . Reddy, Seelam Sai . 2020-09-25 . IGI Global . 978-1-7998-2797-9 . 179 . en.
  4. Book: Nicholls . Andy . R in 24 Hours, Sams Teach Yourself . Pugh . Richard . Gott . Aimee . 2015-12-16 . Sams Publishing . 978-0-13-428880-2 . en.
  5. Book: Berry . Kenneth J. . A Chronicle of Permutation Statistical Methods: 1920–2000, and Beyond . Johnston . Janis E. . Jr . Paul W. Mielke . 2014-04-11 . Springer Science & Business Media . 978-3-319-02744-9 . 207–208 . en.
  6. Book: Encyclopedia of Statistical Sciences, Volume 12 . 2005-12-16 . John Wiley & Sons . 978-0-471-74406-1 . 8088 . en.
  7. Book: Charpentier, Arthur . Computational Actuarial Science with R . 2014-08-26 . CRC Press . 978-1-4987-5982-3 . 4 . en.
  8. Book: Nicholls . Andy . R in 24 Hours, Sams Teach Yourself . Pugh . Richard . Gott . Aimee . 2015-12-16 . Sams Publishing . 978-0-13-428880-2 . en.
  9. Book: Chambers, John . Software for Data Analysis: Programming with R . 2008-06-14 . Springer . 978-0-387-75936-4 . 477–478 . en.
  10. Book: Hardin . James W. . Generalized Estimating Equations . Hilbe . Joseph M. . 2002-07-30 . CRC Press . 978-1-4200-3528-5 . 12 . en.
  11. Book: Becker, R.A. . Chambers, J.M. . S: An Interactive Environment for Data Analysis and Graphics . 1984 . Wadsworth & Brooks/Cole . Pacific Grove, CA, USA . 0-534-03313-X . registration .
  12. Book: Becker, R.A. . Chambers, J.M. . Extending the S System . 1985 . Wadsworth & Brooks/Cole . Pacific Grove, CA, USA . 0-534-05016-6 .
  13. Book: Becker, R.A. . Chambers, J.M. . Wilks, A.R. . The New S Language: A Programming Environment for Data Analysis and Graphics . 1988 . Wadsworth & Brooks/Cole . Pacific Grove, CA, USA . 0-534-09192-X .
  14. Book: Chambers, J.M. . Hastie, T.J. . Statistical Models in S . 1991 . Wadsworth & Brooks/Cole . Pacific Grove, CA, USA . 0-412-05291-1 . 624.
  15. Wilkinson . G.N. . Rogers, C.E. . 1973 . Symbolic description of factorial models for analysis of variance . Applied Statistics . 22 . 3 . 392–399. 10.2307/2346786 . 2346786 .
  16. Web site: The S System . Chambers . John . John Chambers (statistician) . January 1, 2001 . Bell Labs . https://web.archive.org/web/20181014111802/http://ect.bell-labs.com/sl/S/ . 2018-10-14 .
  17. Book: Wickham, Hadley . Advanced R. . adv-r.had.co.nz . 2019 . 9781466586963 . S4 . 2020-02-18.