forked from majerus/r_code_tips
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathassment_one.Rmd
More file actions
107 lines (66 loc) · 1.62 KB
/
Copy pathassment_one.Rmd
File metadata and controls
107 lines (66 loc) · 1.62 KB
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
---
title: "Assessment I: Sports Analytics Jan Plan"
name: ""
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
## Section 1: Loading Packages and Data
##### Load the tidyverse library
```{r}
```
##### Load the Olympic medals data into a data frame called olympics
```{r, echo=FALSE}
```
Here's some info about variables in the data:
- ID - Unique number for each athlete
- Name - Athlete's name
- Sex - M or F
- Age - Integer
- Height - In centimeters
- Weight - In kilograms
- Team - Team name
- NOC - National Olympic Committee 3-letter code
- Games - Year and season
- Year - Integer
- Season - Summer or Winter
- City - Host city
- Sport - Sport
- Event - Event
- Medal - Gold, Silver, Bronze, or NA
## Section 2: Describing the data
##### How many rows are in the data?
##### How many columns are in the data?
## Section 3: Country (NOC) Medal Counts
##### Which country (NOC) has won the most medals?
```{r}
```
##### Which country has won the most medals in the winter games?
```{r}
```
## Section 4: Sport Medal Counts
##### Which sport has awarded the fewest medals?
```{r}
```
##### In how many Olympic Games were medals awarded in the sport of Tug-Of-War?
```{r}
```
## Section 5: BMI
##### Which gold medal winner has the highest BMI? (BMI = kg/m^2)
```{r}
```
## Section 6: Graphing
##### Create a box of the age of medal winners by sex
```{r}
```
##### Who is that person who won a medal when they were 10?
```{r}
```
##### Facet the boxplot by Medal
```{r}
```
## Section 7: Bonus
##### Which cities have hosted the games multiple times?
```{r}
```