This repository contains the code, data, slides, and hands-on notebooks for the Masters in Food and Resource Economics (MFRE) Coding Workshop at the University of British Columbia.
All 2025 material is in the top-level python
and r
folders; 2024 and 2023 archives remain for reference.
python
contains the 2025 Python workshop material.
Day 1 - Introduction to Programming
Part 1 (morning)
python/Day 1/Part-1/1_Jupyter_and_Python.ipynb
- getting started with Jupyter Lab, Python syntax, and the interactive workflow.
Part 2 (afternoon)python/Day 1/Part-1/2_Data_Types_and_Structures.ipynb
- lists, tuples, dictionaries, and simple control flow.
Day 2 - Introduction to Python for Data
Part 1 (morning)
python/Day 2/Part-1/1_Intro_to_Data_Science.ipynb
- NumPy, pandas, and basic exploratory analysis.
Part 2 (afternoon)python/Day 2/Part-2/2_Intro_to_Modeling.ipynb
- simple regression and model-evaluation metrics.
Statistical Applications - Python (Fri AM)
stat applications/python_applications/python_applications.ipynb
- summary statistics and hypothesis-testing in Python.
r
contains the 2025 R workshop material.
Day 1 - Introduction to Functional Programming in R
r/Day 1/1_Intro_to_R.nb.html
- rendered slides covering RStudio, vectors, and the tidyverse philosophy.r/Day 1/1_Intro_to_R.Rmd
- source notebook for live coding.
Day 2 - Applications in R
r/Day 2/2_Intro_to_Modeling_R.nb.html
- slides ondplyr
,ggplot2
, and linear modelling.r/Day 2/2_Intro_to_Modeling_R.Rmd
- companion R Markdown with exercises.
Statistical Applications - R (Fri PM)
stat applications/r_applications/r_applications.Rmd
- summary-statistics and hypothesis-testing workflow in R (usespolicy_analysis.csv
in the same folder).
All shared datasets are stored in the data
directory.
Date | 9 : 30 - 12 : 30 (MCLD 2018) | 13 : 00 - 15 : 00 (MCLD 2018) |
---|---|---|
Mon 18 Aug | Intro to Python (I) | Hands-On Coding (I) |
Tue 19 Aug | Intro to Python (II) | Hands-On Coding (II) |
Wed 20 Aug | Intro to R (I) | Hands-On Coding (I) |
Thu 21 Aug | Intro to R (II) | Hands-On Coding (II) |
Fri 22 Aug | Stat Applications - Python: summary statistics & hypothesis tests (AM) Stat Applications - R: summary statistics & hypothesis tests (PM) |
— |