Tutorial Exercises
Programming for E&BI
1
About
2
Getting Started
3
R as a Calculator
4
Objects and Object Types
5
Operations on Vectors
6
Comparing Vectors
7
R Scripts
8
Loading a CSV Dataset
9
R Packages
10
Dataframes: Indexing
11
Dataframes: Creating Variables
12
Dataframes: Summary Statistics
13
Data Cleaning
14
Introduction to Plotting
15
Data Visualization with
ggplot
16
Making Functions
17
Univariate Unconstrained Optimization
18
Conditional Statements
19
Merging
20
Reshaping
21
Aggregating by Group
Tutorial Exercises
Tutorial Exercises
Below are links to the exercises and solutions for each of the tutorial exercises.
Week 2: Chapters 2-8
Exercises
Solutions
Week 3: Chapters 9-12
Exercises
Solutions
Week 4: Chapter 13
Exercises
Solutions
Week 5: Chapters 14-15
Exercises
Solutions
Week 6: Chapters 16-18
Exercises
Solutions
Week 7: Chapters 19-21
Exercises
Solutions
Sample Exam
Exercises
Solutions
21
Aggregating by Group