
An Introduction to R
Apr 9, 2024 · An Introduction to R Alex Douglas, Deon Roos, Francesca Mancini, Ana Couto & David Lusseau April 9, 2024
Chapter 2 Some R basics | An Introduction to R
In this Chapter we’ll introduce you to using R and RStudio to perform some basic R tasks such as creating objects and assigning values to objects, exploring different types of objects and how …
2.1 Getting started | An Introduction to R
In Chapter 1 we learned about the R Console and creating scripts and Projects in RStudio. We also saw how you write your R code in a script and then source this code into the console to …
- [PDF]
+ +1/,!2 1&,+ 1,
The course website contains a series of exercises which will help you practice writing R code and test your understanding of key concepts - you certainly won’t learn how to use R by watching …
Chapter 3 Data in R | An Introduction to R
In this Chapter we’ll go over the main data types in R and focus on some of the most common data structures. We will also cover how to import data into R from an external file, how to …
7.5 Loops | An Introduction to R
When you create a loop, R will execute the instructions in the loop a specified number of times or until a specified condition is met. There are three main types of loop in R: the for loop, the …
0.1 The aim of this book | An Introduction to R
The main aim of this book is to help you climb the initial learning curve and provide you with the basic skills and experience (and confidence!) to enable you to further your experience in using R.
1.1 Installing R | An Introduction to R
To get up and running the first thing you need to do is install R. R is freely available for Windows, Mac and Linux operating systems from the Comprehensive R Archive Network (CRAN) website.
3.1 Data types | An Introduction to R
R has six basic types of data; numeric, integer, logical, complex and character. The keen eyed among you will notice we’ve only listed five data types here, the final data type is raw which we …
Chapter 4 Graphics with base R | An Introduction to R
There are three main systems for producing graphics in R; base R graphics, lattice graphics and ggplot2. Each of these systems have their strengths and weaknesses and we often use them …