class: center, middle, inverse, title-slide .title[ # An introduction to R ] .author[ ### Robin Lovelace ] .date[ ### University of Leeds
] --- background-image: url(https://c1.staticflickr.com/2/1216/1096671706_571a263b63_b.jpg) background-position: 50% 50% class: center, bottom, inverse # Credit: Mandeep Lota via [flickr](https://www.flickr.com/photos/deepster2k/1096671706) --- # The team ### Robin Lovelace - Especially cycling potential ([e.g. to school](http://eprints.whiterose.ac.uk/141852/)) - R developer and teacher, with three books on the subject - Lead Developer of the Propensity to Cycle Tool ([PCT](http://www.pct.bike/)) and PI on the Cycling Infrastructure Prioritisation Toolkit ([CyIPT](https://www.cyipt.bike)) -- ### Caroline -- ### Hussein -- ### Juan -- ### How about you? <!-- No time for go around, just type in the chat --> --- # Session overview Part 1: what R can do Part 2: shared practical session Part 3: working on your own/groups - Using packages: https://itsleeds.github.io/rrsrr/pkgs.html around half an hour - Manipulating data: filtering and selecting data: https://itsleeds.github.io/rrsrr/data.html#tibbles around half an hour - Spatial data: https://itsleeds.github.io/rrsrr/space.html --- ## Set-up See https://itsleeds.github.io/rrsrr/introduction.html#prerequisites --- ## Why R Growth + future proof: https://stackoverflow.blog/2017/10/10/impressive-growth-r/ Scalable: https://www.pct.bike/ -- ## Why not R? - Time to learn - Other options are available --- # Demo of using R <!-- 20 mins - until around 09:30 --> See https://github.com/Robinlovelace/openTransportDataDemo  --- # Deeper dive into R See https://itsleeds.github.io/rrsrr/  --- # Questions on how to use R for transport research <!-- (20 minutes) --> --- ## Breakout rooms - See https://github.com/ITSLeeds/rintro --- ## Further resources - Use R's internal help, e.g. `?plot` Beginner: https://rstudio.cloud/learn/primers/ Intermediate: Geocomputation with R https://geocompr.robinlovelace.net/transport.html Advanced: R for Data Science https://r4ds.had.co.nz/introduction.html --- # Thanks + questions