-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlesson_skeleton.R
77 lines (44 loc) · 1.6 KB
/
lesson_skeleton.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
### Welcom to Shree and Dre's tidyverse overview
library(tidyverse)
library(nycflights13)
## cheat sheets: https://www.rstudio.com/resources/cheatsheets/
############################################
## Import ##
############################################
# Start with importing data
# Some data come in packages
flights
str(flights)
summary(flights)
# You can directly read in directly from files online
crime <- read_csv("https://vincentarelbundock.github.io/Rdatasets/csv/Ecdat/Crime.csv")
browseURL("https://vincentarelbundock.github.io/Rdatasets/doc/Ecdat/Crime.html")
############################################
## Plot 1 ##
############################################
## What times are busiest?
## Wrangle data
## Plot
## Prettify plot
############################################
## Plot 2 ##
############################################
## What times are busiest?
## Wrangle data
## Plot
## Prettify plot
############################################
## Plot 3 ##
############################################
## Which airlines experience the most delays?
## Wrangle data
## Plot
## Prettify plot
############################################
## Plot 4 ##
############################################
## How does time of year affect flight delay?
############################################
## Plot 5 ##
############################################
## Which destinations are serviced by the top x airlines?