Problem 4 titleR Notebook a b output htmlnotebook This is

### Problem 4 title:\"R Notebook\" a) & b)
output: html_notebook
---
This is an [R Markdown](http://rmarkdown.rstudio.com) Notebook. When you execute code within the notebook, the results appear beneath the code.

### Problem 4
After the hurricane Irma, September 2017, many citizens in Miami Dade County called 311 to report something. The dataset 311_MDC_9_10-18 includes a detailed information about the incidents reported.

a) Upload the dataset (\"https://raw.githubusercontent.com/reisanar/datasets/master/311_MDC_9_10-18.csv\") and asign it to the variable mdc_calls. Since the data set is external, use the appropriate command and use the operator head to verify it was uploaded properly and get familiar with all of the information included.

```{r}
# Type R code below this line

```
b) Draw a barplot for the Zip Postal Code column in order to see from which part of the County calls were generated the most. Find a zip code map for Miami Dade County in Google, and tell where approximately these codes are located in the city.

```{r}
# Type R code below this line

```

Solution

a)

# importing CSV file

mdc_calls <- read.csv(“c:/ 311_MDC_9_10-18”, header = TRUE, sep = “,”)

# Displaying top 6 rows of the dataset

head(mdc_calls)

# Displaying summary of the dataset

summary(mdc_calls)

b)

# Creating table structure for zip code

ggmap(map, extent=\'device\') +

geom_point(aes(x=Longitude, y=Latitude, colour= Zip / Postal Code), + data=mdc_calls) +

ggtitle(\'Zipcode Location\') +

theme(plot.title = element_text(hjust = 0.5))


Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site