S is a high-level language for manipulating, analysing and displaying data. It forms the basis of two highly acclaimed and widely used data analysis software systems, the commercial S-PLUS® and the Open Source R. This book provides an in-depth guide to writing software in the S language under either or both of those systems. It is intended for readers who have some acquaintance with the S language and want to know how to use it more effectively, for example to build re-usable tools for streamlining routine data analysis or to implement new statistical methods.
One of the outstanding strengths of the S language is the ease with which it can be extended by users. S is a functional language, and functions written by users are first-class objects treated in the same way as functions provided by the system. S code is eminently readable and so a good way to document precisely what algorithms were used, and as much of the implementations are themselves written in S, they can be studied as models and to understand their subtleties. The current implementations also provide easy ways for S functions to call compiled code written in C, Fortran and similar languages; this is documented here in depth.
Increasingly S is being used for statistical or graphical analysis within larger software systems or for whole vertical-market applications. The interface facilities are most developed on Windows® and these are covered with worked examples. The authors have written the widely used Modern Applied Statistics with S-PLUS, now in its third edition, and several software libraries that enhance S-PLUS and R; these and the examples used in both books are available on the Internet.
Author(s): W. N. Venables, B. D. Ripley
Series: Statistics and computing
Edition: 1
Publisher: Springer
Year: 2000
Language: English
Pages: X, 265
City: New York
Front Matter....Pages i-x
Introduction....Pages 1-4
The S Language: Syntax and Semantics....Pages 5-38
The S Language: Advanced Aspects....Pages 39-73
Classes....Pages 75-97
New-style Classes....Pages 99-121
Using Compiled Code....Pages 123-150
General Strategies and Extended Examples....Pages 151-178
S Software Development....Pages 179-203
Interfaces under Windows....Pages 205-234
Back Matter....Pages 235-265