Steph Locke | Not my Rs

What's this about Rs?

Why should you know your Rs from your elbow?

What does R look like? | Basics

#Define a variable
a<-25

#Call a variable
a

#Do something to it
a+1

What does R look like? | Functions

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

#Call a function
inflateAudienceFigs(a)

What does R look like? | Extensions

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

#Activate a package
library(data.table)

What does R look like? | Piping

library(magrittr)
library(magrittr)

#Typical
pairs(iris)

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

Find out more

Online

In-person

Get this presentation

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!

itsalocke.com | github.com/StephLocke | \@SteffLocke



stephlocke/Rtraining documentation built on May 30, 2019, 3:36 p.m.