Topic: GitHub
In this assignment you will practice the basics of working with project repos using GitHub and the GitHub desktop app. Specifically, you will fork this repo, clone it to your computer, contribute to it, push changes from your local repo (your computer) to your upstream branch (your forked copy on GitHub), and, finally, submit a pull request to merge your contribution with the master repo (i.e., the professor’s copy).
Assigned: Week 1
Due: Monday, 02/03 before 10pm
- If you have not already done so, fork this repo and clone it to your computer.
- In your local copy create a personal ‘dropbox’
- create an empty folder named “lastname_firstname” (ex.
casillas_joseph). Put it inside
misc > students. - create another README.md file and place it inside your
personal folder. Include the following info:
- Your name
- Your email
- Your personal website if you have one
- A goal you have for this class
- create an empty folder named “lastname_firstname” (ex.
casillas_joseph). Put it inside
- Create another folder. Name it
summariesand place it inside your personal dropbox folder. Next, read Wickham, 2015. Create a file called wickham_2015_summary.md and write a 4 sentence summary about the article. Save this file insummariesinside your personal dropbox (the lastname_firstname folder you just made). - Read R4DS Preface - Ch. 2 (p. ix-41). Do all examples included in the text as you read (nothing to turn in).
- Read QML Ch. 1 (pp. 1-33). Do the R examples included in the text as you read (nothing to turn in).
- Commit the changes to your upstream branch, i.e., your copy of the
repo on github.com. Check your repo on GitHub to make sure it
worked, and then submit a pull-request. It should include the
following…
- your dropbox folder (lastname_firstname)
- a README.md file
- a summaries folder (inside your dropbox)
- your Wickham (2015) summary (wickham_2015_summary.md)
This is programming assignment 1 of 4. It is worth 10 of the 40 possible points. In order to receive full credit you must complete steps 1-6 above and follow all the instructions.
| Task | Points |
|---|---|
| Create a dropbox folder | 1 |
| Include a README.md | 1 |
| Create a summaries folder | 1 |
| Include a summary of Wickham (2015) | 2 |
| Successfully submit a pull request | 5 |
| Total | 10 |
This is how the file structure currently looks:
programming_assignments
│
├── README.md
└── misc
└── students
├── README.md
└── lastname_firstname
├── README.md
└── summaries
└── wickham_2015_summary.md
Take a look inside the firstname_firstname folder if you need an
example (this is highly recommended). Your personal dropbox should look
exactly the same, but with your information, summaries, etc. In other
words, you will add a folder inside students that looks like this (I
am using my name, you will use your name):
casillas_joseph
│
├── README.md
└── summaries
└── wickham_2015_summary.md
Remember to check the GitHub setup tutorial if you need help pushing your changes and submitting a pull request.
Topics: RMarkdown, ggplot
In this assignment you will practice the basics of using .Rmd files to
create dynamic, reproducible reports in .docx, .pdf, or .html format.
Moreover, you will show your data visualization skills using ggplot2.
Assigned: Week 3
Due: Monday, 2/17 before 10pm
- Fetch the latest updates in
programming_assignmentsto your forked branch and pull the changes to your local copy (i.e., the copy on your computer). Review the GitHub setup tutorial if you need a refresher. - Create a folder,
pa2, inside your personal dropbox.1 - In RStudio create an RMarkdown file called
README.Rmdand put it inside thepa2folder. - Use the following information for the yaml front matter:
title: "Programming assignment 2"
author: "Your name"
date: "Last update: `r Sys.time()`"
output:
html_document:
highlight: kate
keep_md: yes
theme: united- Install and load the
languageRpackage from CRAN. - Familiarize yourself with three of the following five datasets:
- beginningReaders
- danish
- dativeSimplified
- english
- spanishFunctionWords
- Inside your
README.Rmdfile you will generate 3 different plots usingggplot2. You must use 3 of the aforementioned datasets (a different dataset for each plot). All plots must include informative x-, y-axis labels and a title. The plots you must create are:- A bivariate scatterplot
- A boxplot with different fill colors
- A plot of your choice that includes a
stat_summaryand a facet.
- Commit the changes in your dropbox to your upstream branch, i.e.,
your forked copy on github. Check your repo on GitHub.com to make
sure it worked (notice anything cool when you check the
pa2folder?), and then submit a pull-request to theds4ling/programming_assignmentsmain repo. It should include the following… - your
pa2folder - your
README.RmdRMarkdown file (and probably a few others) - 3 plots created using
ggplot
This is programming assignment 2 of 4. It is worth 10 of the 40 possible points. In order to receive full credit you must complete all the steps above and follow all the instructions.
| Task | Points |
|---|---|
| Create a pa2 folder | 0.5 |
| Create a README.Rmd file | 0.5 |
| Use correct yaml front matter | 1 |
| Generate 3 specified plots | 6 |
| Successfully submit a pull request | 2 |
| Total | 10 |
Review Ch. 1 of R4DS for help with ggplot. DO NOT copy the plots
directly from the book or the internet (I’ll know). Review the GitHub
setup
tutorial,
especially if you are struggling with git-specific terminology. Pay
special attention to file names, letter case, etc. in order to get the
appropriate results.
This is more or less how your dropbox should look (Note: your pa2 folder will have a little more detail than what I have described here. That is fine):
casillas_joseph
│
├── README.md
├── summaries
│ └── r4ds_ch1_summary.md
└── pa2
└── README.Rmd
1: Note: you might have noticed that your
current copy of programming_assignments now includes the dropbox
folders of your classmates. This is on purpose. You are encouraged to
review your classmates assignments. You can learn from them and you will
notice that it is possible to solve data science problems using a
variety of different methods. That being said, you should only review
the work of your classmates after the assignment has been turned in.