Course Outline
Basic overview of R and R Studio
- R overview
- R Studio Environment Windows
- Script Editor Window
- Data Environment
- Console
- Plots/Help/Packages
Working with Data
- Introduction to vectors and matrices (data.frame)
- Different types of variables
- Numeric, Integer, factor etc
- Changing variable types
- Importing data using R Studio menu functions
- Removing variables ls() command
- Creating variables at the console prompt – single, vector, data frame
- Naming vectors and matrices
- Head and tail commands
- Introduction to dim, length and class
- Command line import (reading .csv and tab delimited .txt files)
- Attaching and detaching data (advantages vs data.frame$)
- Merging data using cbind and rbind
Exploratory Data Analysis
- Summarising data
- Summary command on both vectors and data frames
- Sub-setting data using square brackets
- summarising and creating new variables
- Table and summary commands
- Summary statistic commands
- Mean
- Median
- Standard Deviation
- Variance
- Count & frequencies
- Min & Max,
- Quartiles
- Percentiles
- Correlation
Exporting data
-
- Write table .txt
- Write to a .csv file
R Workspace
- Concept of Working Directories and Projects (menu driven and code – setwd())
Introduction to R scripts
- Creating R Scripts
- Saving scripts
- Workspace images
Concepts of packages
- Installing packages
- Loading packages into memory
Plotting data (using standard default R plot command and ggplot2 package)
- Bar Charts and Histograms
- Boxplots
- Line charts / time series
- Scatter plots
- Stem and leaf
- Mosaic
- Modifying plots
- Titles
- Legends
- Axis
- Plot Area
- Exporting a plot to a third party application
Requirements
There are no specific requirements needed to attend this course.
Testimonials
There was a small group, Charlie was very knowledgeable and had a good rapport with us. She was responsive to our questions
Dr Alasdair Gordon-Finlayson, University of Northampton
Lots of signposting beyond the basic R foundations content, Charlie has given me a lot of good ideas for where I need to go next and what I need to engage with to continue to improve my R fluency.
Dr Alasdair Gordon-Finlayson, University of Northampton
I feel more confident with coding now. I've never done it before but now I understand that it's not rocket science and I can do it when necessary.
Anna Yartseva - Birmingham City University
Good explanations on how we do things
- Birmingham City University
Background knowledge and 'provenance' of trainer.
Francis McGonigal - Birmingham City University
Excellent presentation and it gives me confidence to build on knowledge gained.
- Birmingham City University
The trainer was very concern about individual understanding.
Muhammad Surajo Sanusi - Birmingham City University
I genuinely enjoyed the hands passed exercises.
Yunfa Zhu - Environmental and Climate Change Canada
I was benefit from the good examples and opportunity to follow along.