generated from stat184-summer2023/A09-street-or-road
-
Notifications
You must be signed in to change notification settings - Fork 0
/
activity-street-road-template.Rmd
86 lines (46 loc) · 1.46 KB
/
activity-street-road-template.Rmd
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
---
title: "Activity: Street or Road?"
author: "YOUR NAME HERE"
output: html_notebook
---
## Load in the data
```{r}
#load libraries
#load in the data here
# we will only be using the "street-addresses.csv" file from the text
```
## Recreate Solved Example using `sample(50)`
```{r}
```
## Recreate Soved Example using the entire `Address` data set
```{r}
```
#### Additional Question: How many addresses are a PO BOX (including NCSU BOX)?
```{r}
```
My answer here......
## Back to the Streets: Your Turn
#### Part 1: Explain (in english) each line of the following code chunk
```{r}
pattern <- "(ST|RD|ROAD)"
LeftOvers <-
Addresses %>%
filter( !grepl(pattern, address),
!grepl("\\sAPT|UNIT\\s[\\d]+$", address),
!grepl(" BOX ", address)
)
```
My answer here.......
#### Part 2: Implement your method on the entire `Addresses` data set. Explain how your code works line by line.
```{r}
```
My answer here.......
#### Additional Question 1: Present your result from part 2 by providing a table in descending order of popularity for the street name endings you found
```{r}
```
#### Additional Question 2: Present your result by using ggplot to a bar chart in descending order of popularity for the street name endings you found previously.
Note: make sure your order street names according to popularity, not alphabetically.
```{r}
```
#### Additional Question 3: Comment on any patterns you see
My answer here.......