- Page 1: The Art of R Programming Norman Mat
- Page 5 and 6: CONTENTS v 5 Lists 47 5.1 Creation
- Page 7 and 8: CONTENTS vii 11.1 Reading from the
- Page 9 and 10: CONTENTS ix 14.4.1 Installation . .
- Page 11 and 12: CONTENTS xi 21.1 R’s Internal Hel
- Page 13 and 14: Preface This book is for those who
- Page 15 and 16: Chapter 1 Why R? 1.1 What Is R? R i
- Page 17 and 18: 1.2. WHY USE R FOR YOUR STATISTICAL
- Page 19 and 20: Chapter 2 Getting Started In this c
- Page 21 and 22: 2.2. A FIRST R EXAMPLE SESSION (5 M
- Page 23 and 24: 2.3. FUNCTIONS: A SHORT PROGRAMMING
- Page 25 and 26: 2.4. PREVIEW OF SOME IMPORTANT R DA
- Page 27 and 28: 2.6. EXTENDED EXAMPLE: REGRESSION A
- Page 29 and 30: 2.7. SESSION DATA 15 2.7 Session Da
- Page 31 and 32: Chapter 3 Vectors The fundamental d
- Page 33 and 34: 3.4. VECTOR ARITHMETIC AND LOGICAL
- Page 35 and 36: 3.7. VECTOR ELEMENT NAMES 21 Negati
- Page 37 and 38: 3.8. ELEMENTWISE OPERATIONS ON VECT
- Page 39 and 40: 3.9. FILTERING 25 > z z [1] 5 2 -3
- Page 41 and 42: 3.11. EXTENDED EXAMPLE: RECODING AN
- Page 43 and 44: Chapter 4 Matrices A matrix is a ve
- Page 45 and 46: 4.2. MATRIX INDEXING 31 > y+y [,1]
- Page 47 and 48: 4.5. EXTENDED EXAMPLE: PRELIMINARY
- Page 49 and 50: 4.6. DIMENSION REDUCTION: A BUG OR
- Page 51 and 52: 4.8. EXTENDED EXAMPLE: DISCRETE-EVE
- Page 53 and 54:
4.8. EXTENDED EXAMPLE: DISCRETE-EVE
- Page 55 and 56:
4.8. EXTENDED EXAMPLE: DISCRETE-EVE
- Page 57 and 58:
4.10. APPLYING THE SAME FUNCTION TO
- Page 59 and 60:
4.11. DIGGING A LITTLE DEEPER ON TH
- Page 61 and 62:
Chapter 5 Lists R’s list structur
- Page 63 and 64:
5.4. ACCESSING LIST ELEMENTS 49 Her
- Page 65 and 66:
5.6. INDEXING OF LISTS 51 NULL [[2]
- Page 67 and 68:
5.8. APPLYING THE SAME FUNCTION TO
- Page 69 and 70:
Chapter 6 Data Frames On an intuiti
- Page 71 and 72:
6.2. MATRIX-LIKE OPERATIONS 57 6.2.
- Page 73 and 74:
6.4. CREATING A NEW DATA FRAME FROM
- Page 75 and 76:
6.6. THE FACTOR FACTOR 61 But if ou
- Page 77 and 78:
Chapter 7 Factors and Tables Consid
- Page 79 and 80:
where x is a vector of observations
- Page 81 and 82:
Chapter 8 R Programming Structures
- Page 83 and 84:
8.1. CONTROL STATEMENTS 69 > u [,1]
- Page 85 and 86:
8.3. TYPE CONVERSIONS 71 > y [1] "1
- Page 87 and 88:
Chapter 9 R Functions In terms of s
- Page 89 and 90:
9.3. FUNCTIONS HAVE (ALMOST) NO SID
- Page 91 and 92:
9.4. DEFAULT VALUES FOR ARGUMENTS 7
- Page 93 and 94:
9.7. EDITING FUNCTIONS 79 9.7 Editi
- Page 95 and 96:
Chapter 10 Doing Math in R R contai
- Page 97 and 98:
10.4. LINEAR ALGEBRA OPERATIONS ON
- Page 99 and 100:
10.5. EXTENDED EXAMPLE: A FUNCTION
- Page 101 and 102:
10.6. EXTENDED EXAMPLE: FINDING STA
- Page 103 and 104:
10.9. EXTENDED EXAMPLE: A COMBINATO
- Page 105 and 106:
Chapter 11 Input/Output 11.1 Readin
- Page 107 and 108:
11.4. READING A FILE ONE LINE AT A
- Page 109 and 110:
11.7. ACCESSING FILES ON REMOTE MAC
- Page 111 and 112:
Chapter 12 Object-Oriented Programm
- Page 113 and 114:
12.2. GENERIC FUNCTIONS 99 12.1.5 T
- Page 115 and 116:
12.3. WRITING CLASSES 101 > lmout
- Page 117 and 118:
12.3. WRITING CLASSES 103 } class(r
- Page 119 and 120:
12.3. WRITING CLASSES 105 > setClas
- Page 121 and 122:
12.4. EXTENDED EXAMPLE: A PROCEDURE
- Page 123 and 124:
12.4. EXTENDED EXAMPLE: A PROCEDURE
- Page 125 and 126:
Chapter 13 Graphics R has a very ri
- Page 127 and 128:
13.3. STARTING A NEW GRAPH WHILE KE
- Page 129 and 130:
13.5. EXTENDED EXAMPLE: MORE ON THE
- Page 131 and 132:
13.6. EXTENDED EXAMPLE: TWO DENSITY
- Page 133 and 134:
13.7. ADDING POINTS 119 Note that w
- Page 135 and 136:
13.10. PINPOINTING LOCATIONS: THE L
- Page 137 and 138:
13.14. THE POLYGON() FUNCTION 123 1
- Page 139 and 140:
13.17. EXTENDED EXAMPLE: MAGNIFYING
- Page 141 and 142:
13.18. GRAPHICAL DEVICES AND SAVING
- Page 143 and 144:
Chapter 14 Debugging The R base pac
- Page 145 and 146:
14.3. PERFORMING CHECKS AFTER A CRA
- Page 147 and 148:
14.5. ENSURING CONSISTENCY WITH THE
- Page 149 and 150:
Chapter 15 Writing Fast R Code R is
- Page 151 and 152:
15.2. EXTENDED EXAMPLE: ACHIEVING B
- Page 153 and 154:
15.2. EXTENDED EXAMPLE: ACHIEVING B
- Page 155 and 156:
15.4. FUNCTIONAL PROGRAMMING AND ME
- Page 157 and 158:
15.5. EXTENDED EXAMPLE: AVOIDING ME
- Page 159 and 160:
Chapter 16 Interfacing R to Other L
- Page 161 and 162:
16.4. EXTENDED EXAMPLE: ACCESSING R
- Page 163 and 164:
Chapter 17 Parallel R Since many R
- Page 165 and 166:
17.1. OVERVIEW OF PARALLEL PROCESSI
- Page 167 and 168:
17.2. RMPI 153 Less obvious, though
- Page 169 and 170:
17.2. RMPI 155 # piece all together
- Page 171 and 172:
17.3. THE SNOW PACKAGE 157 However,
- Page 173 and 174:
17.3. THE SNOW PACKAGE 159 > y clu
- Page 175 and 176:
17.3. THE SNOW PACKAGE 161 } numste
- Page 177 and 178:
17.4. EXTENDED EXAMPLE: COMPUTATION
- Page 179 and 180:
Chapter 18 String Manipulation R ha
- Page 181 and 182:
18.3. EXTENDED EXAMPLE: DATA CLEANI
- Page 183 and 184:
Chapter 19 Installation: R Base, Ne
- Page 185 and 186:
19.2. PACKAGES (LIBRARIES 171 This
- Page 187 and 188:
Chapter 20 User Interfaces Though s
- Page 189 and 190:
Chapter 21 To Learn More There is a
- Page 191 and 192:
21.2. HELP ON THE WEB 177 • http:
- Page 193:
21.2. HELP ON THE WEB 179 21.2.6 We