Select Page

I have taken efforts in writing this manual. My hope is that the manual will be helpful to gain a more in-depth perspective about base R. Please let me your feedback: it can help me to improve the manual. Thank you very much. The author Nicola Sturaro...

## Acknowledgment

This web book is the result of several years of introductory R course. It contains work of my colleagues: Daniela Manzato, who wrote the first version of this book, Andrea Spanò, who reviews the first versions and Enrico Pegoraro. However, it would not have been...

## Chapter 9

Tables with R The istat data set contains gender, geographical area, weight and height for 1806 people. The frequency table for the gender or the geographical area can be obtained using the table() function. R load("istat.Rda") head(istat) 12...

## Chapter 8

Statistical Models with R Regression Analysis Regression is the study of the change of the distribution of one variable, \(y\), according to the value of another variable, \(x\). Both continuous and discrete variables can be included in regression problems. Formally,...

## Chapter 7

R Graphics The Graphic Environment R comes with a wide variety of graphical functions. The R default graphics package provide standard R graphics. Additional libraries such as lattice and ggplot provide specialized and often very attractive graphics. This chapter is...

## Chapter 6

Using R functions Mathematical Functions The names of the basic functions and mathematical operators in R follow the standards of programming languages. In this paragraph the functions and operators enabling basic mathematical operations to be performed will be dealt...