AN INTRODUCTION TO R Introduction and examples What is R?. R ...

33 downloads 211 Views 306KB Size Report
statistical data analysis, and these allow R to be used purely as a toolbox for standard ... the main appeal of R (as op
AN INTRODUCTION TO R DEEPAYAN SARKAR

Introduction and examples What is R?. R provides an environment in which you can perform statistical analysis and produce graphics. It is actually a complete programming language, although that is only marginally described in this book. —Peter Dalgaard, “Introductory Statistics with R”, 2002 R can be viewed as a programming language that happens to come with a large library of pre-defined functions that can be used to perform various tasks. A major focus of these pre-defined functions is statistical argument in plot() causes the points to be joined by line segments, in the order in which the data are provided (in the x and y arguments). Modify the call so that points are joined in the order of increasing x-value, as in the plot on the right.

−1

0

1

2

extra.hyoscyamine

3