GEOG5917 Book
1
Getting Started with R/RStudio
1.1
Starting RStudio
1.2
File Managment
1.3
The RStudio interface
1.4
Ways of working
2
Practical 1: Getting Started with RStudio, Data and Spatial Data
2.1
Part 1: Getting started in R / RStudio
2.1.1
Introduction
2.1.2
Basic data types in R
2.1.3
Basic data selection operations - indexing
2.2
Part 2: Data and Spatial Data
2.2.1
Introduction: packages and data files
2.2.2
Spatial Data
2.2.3
Some basic visualisations
2.3
Answers to Tasks
2.3.1
Data Tasks
2.3.2
Spatial Data Tasks
3
Practical 2: EDA with
dplyr
,
ggplot2
and
tmap
3.1
Overview
3.2
Part 1: Manipulating data and spatial data with
dplyr
3.2.1
Piping Syntax
3.2.2
Single table manipulations in
dplyr
3.2.3
Two table manipulations in
dplyr
3.3
Part 2: Exploratory Data Analysis with
ggplot
3.3.1
Introduction
3.3.2
The
ggplot
Basics
3.3.3
Single variables
3.3.4
Two variables
3.3.5
Facets and Groups
3.3.6
Multiple variables
3.3.7
Writing figures to file
3.3.8
Summary
3.4
Part 3:
Optional
: Mapping and visualizing spatial properties
3.4.1
Mapping with
tmap
3.4.2
Mapping with
ggplot
3.5
Answers to Tasks
4
Practical 3: Modelling with Regression and GWR
4.1
Part 1. Main Practical
4.1.1
Introduction
4.1.2
OLS regression for continuous variables
4.1.3
Generalised Linear Models (GLMs)
4.1.4
Geographically Weighted Regression
4.2
Part 2. Optional analyses
4.2.1
Outliers and Robust (‘bomb-proof’) Regression
4.2.2
Multi-scale GWR
5
Practical 4: Machine Learning’
5.1
Machine Learning in
caret
5.2
Data
5.3
Prediction vs. Inference
5.4
The Mechanics of Machine Learning
5.4.1
Data rescaling and normalisation
5.4.2
Training and Validation data splits
5.4.3
Measures of fit
5.4.4
Model Tuning
5.4.5
Validation
5.4.6
Summary
5.5
Comparing different Machine Learning approaches
5.5.1
Prediction
5.5.2
Inference
Appendix: Creating and evaluating a tuning grid
6
Practical 5: Databases
6.1
Introduction
6.1.1
1. Overview
6.1.2
Introduction to Databases
6.1.3
Databases in R
6.2
Creating relation databases in R
6.2.1
Data
6.2.2
Creating a local,
in memory
database
6.2.3
Creating a local,
on file
database
6.2.4
Summary
6.3
Database queries
6.3.1
Extracting data from a database
6.3.2
Joining (linking) database tables
6.3.3
Final observations
6.4
Summary
References
Published with bookdown
GEOG5917 Big Data & Consumer Analytics - RStudio Practicals
References