Assignments
Assignments are posted here as they are assigned. Not every week has an assignment; some weeks involve only in-class work. Refer to the Syllabus for the complete schedule.
Standing policy: All assignments are due by the beginning of the next class unless otherwise specified.
Week 1: R Programming with Swirl
Assigned: Feb. 02 Due: Feb. 09 (before class)
Complete the following Swirl R Programming lessons:
| Lesson | Topic |
|---|---|
| 1 | Basic Building Blocks |
| 2 | Workspace and Files |
| 4 | Vectors |
| 6 | Subsetting Vectors |
| 7 | Matrices and Data Frames |
| 12 | Looking at Data |
How to complete:
- Open RStudio
- Type
library(swirl)thenswirl()in the console - Select “R Programming” and work through each lesson listed above
Submission: You will confirm completion via an in-class poll at the start of Week 2. No screenshots or documentation required.
Week 2: R Programming & Orange Data Mining
Assigned: Feb. 09 Due: Feb. 16 (before class)
R Programming:
Complete DataCamp: Introduction to Text Analysis in R – Chapter 1: Wrangling Text.
Optional: Replicate the in-class Orange demo
For extra practice, replicate the in-class demo by loading the presidential speeches corpus into Orange Data Mining and exploring it with the Corpus widget.
Download the corpus from the Data page.
Steps:
- Download the presidential speeches CSV from the Data page
- Add it to a subfolder in your repo (e.g.,
/data/president_speeches/) - Commit and push via GitHub Desktop
- Open Orange Data Mining
- Add a Corpus widget and load the CSV from your data folder
- Explore the corpus – browse speeches, filter, search
- Save your workflow (
.owsfile)
Submission: Upload your .ows file and a screenshot of your Orange workflow to your GitHub repository.
Uploading Your Work
Unless otherwise noted, coursework must be documented with screenshots and relevant files, then uploaded to your individual GitHub repository. See the Getting Started guide for repository setup and structure.
Optional: Supplementary R Programming
For students interested in developing deeper R programming skills:
Swirl R Programming:
- Lesson 5: Missing Values
- Lesson 8: Logic
- Lesson 9: Functions
Swirl Exploratory Data Analysis:
- Lesson 13: Dimension Reduction
DataCamp:
- Data Manipulation & Visualization
- Intermediate R
- Text Mining with Bag-of-Words in R