i
Table o Contents
Preace
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
11 Introduction and preliminaries
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.1 The R environment
................................................................
21.2 Related sotware and documentation
...............................................
....................................................................
21.4 R and the window system
.........................................................
31.5 Using R interactively
..............................................................
31.6 An introductory session
............................................................
41.7 Getting help with unctions and eatures
...........................................
41.8 R commands, case sensitivity, etc.
.................................................
41.9 Recall and correction o previous commands
.......................................
51.10 Executing commands rom or diverting output to a le
............................
51.11 Data permanency and removing objects
...........................................
2 Simple manipulations; numbers and vectors
. . . . . . . . . . . . . . . . .
2.1 Vectors and assignment
............................................................
..................................................................
72.3 Generating regular sequences
......................................................
....................................................................
.....................................................................
................................................................
102.7 Index vectors; selecting and modiying subsets o a data set
.......................
102.8 Other types o objects
............................................................
3 Objects, their modes and attributes
. . . . . . . . . . . . . . . . . . . . . . . .
3.1 Intrinsic attributes: mode and length
.............................................
133.2 Changing the length o an object
.................................................
143.3 Getting and setting attributes
....................................................
143.4 The class o an object
............................................................
4 Ordered and unordered actors
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.1 A specic example
................................................................
tapply()
and ragged arrays
.........................................
..................................................................
5 Arrays and matrices
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.1 Arrays
...........................................................................
185.2 Array indexing. Subsections o an array
..........................................
...................................................................
array()
unction
............................................................
205.4.1 Mixed vector and array arithmetic. The recycling rule
........................
205.5 The outer product o two arrays
..................................................
215.6 Generalized transpose o an array
.................................................
..................................................................
225.7.1 Matrix multiplication
........................................................