-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathself_practice.Rmd
More file actions
20 lines (16 loc) · 877 Bytes
/
self_practice.Rmd
File metadata and controls
20 lines (16 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
---
title: "Self Practice"
author: "Jonathan Rosenblatt"
date: "March 23, 2015"
output: html_document
---
Some exercises to practice your initial R skills.
Make sure you can answer. No need to submit.
1. What is the difference between .csv and tab delimited data files? What function imports and exports csv files?
2. What is the average departure delay of the flights that departed on the Sundays of Oct 2013? (`flights` dataset in the `nycflights13` package).
3. Plot a histogram and a boxplot of the delays of JetBlue Airways flights, after joining with the `airlines` dataset. Now plot the same plots for each day of the week. Export the plots as pdf files.
4. Create, then save as a csv, a data.frame named `drinks` with gender and drinks data, so that the output of `table(drinks)` is:
Gender | Coke | Coffee
-------|-------|-------
Male | 12 | 10
Female | 3 | 20