Steph Locke

2017-04-20

- Star of presentations such as “the LaTeX show”!
- Principal consultant at Mango Solutions
- Local user group leader
- blog: itsalocke.com
- t: @stefflocke

- R is an open source language, made out of the ashes of S
- It started off stats
- Now has excellent graphics, .js, & doc facilities

- Great analysis
- Reclaim your time from Excel
- Markdown!
- Interactive data viz via js libraries
- Fully CI/CD capable

```
#Define a variable
a<-25
#Call a variable
a
```

`## [1] 25`

```
#Do something to it
a+1
```

`## [1] 26`

```
#Define a function
inflateAudienceFigs<-function(x) x*100
#Call a function
inflateAudienceFigs(a)
```

`## [1] 2500`

```
#Get a package
install.packages("data.table")
#Activate a package
library(data.table)
```

```
library(magrittr)
#Typical
pairs(iris)
#Pipe
iris %>% pairs
iris %>% tail(.) %>% pairs
iris %>% {tail(.,nrow(.)/5)} %>% pairs
```

- Modern R DataCamp
- Statistics R Coursera
- R-bloggers
- Advanced R programming
- Writing R packages

This presentation is available on github.com/stephlocke/Rtraining. All the code is available for you to take a copy and play with to help you learn on the go.

If you have any questions, contact me!