This repository contains the documentation, background material, scripts, and data for a tutorial on the Introduction to R. This introductory workshop is geared towards people with a interest/ background in geography and environmental science.
This tutorial requires two things to be installed: The language R and the IDE Rstudio. The downloads can be accessed from the following websites. A variety of packages will be used and will be instaled within the R environment using the command install.packages("packagename").
- Install R from https://cran.rstudio.com/
Note: The most current version is 3.6.2 (Dark and Stormy Night, 2019-12-12)
- Install Rstudio from https://www.rstudio.com/products/rstudio/download/#download
Note: The most current version is 1.2.5033
An overview of the workshop material is listed here:
- Tutorial background information (slides)
- Lecture 1 (intro_to_r.pdf)
- Lecture 2 (intro_to_r_lecture2.pdf)
- R Script files
- Data files
Textbooks for general R use:
Statistics in R:
- Chapter 9: R Cookbook
- For more a more in depth background in Statistics please reference material from my [Introduction to Statistics] (https://github.com/kristineccles/introduction_to_stats) course I previously taught.
- This is a helpful website for understanding PCA
R Cheatsheets:
These cheatsheets are provided by the R community and RStudio, describing common procedures and packages. Good cheatsheets to look at are: