<- read_csv('https://bcdanl.github.io/data/nyc_dogs_cleaned.csv') nyc_dogs
Classwork 11
Summarize data.frame
with summarize()
Question 1. NYC dogs
- For Question 1, run the following R command to read the
nyc_dogs_cleaned.csv
file.
Q1a
- Find the five most popular
breed
s.
Answer:
Q1b
- Provide both (1) ggplot code and (2) a simple comment to describe how the distribution of the five popular
breed
s varies byborough
.
Answer:
Q1c
- Find the five most popular
breed
s in eachborough
.
Answer:
Q1d
- Find the five most popular dog
name
s for eachgender
.
Answer:
Q1e
- Find the five most popular dog
name
s for eachgender
in eachborough
.
Answer:
Q1f
- Assume that all dogs in the
nyc_dogs
data frame are alive as of today.- Provide both (1) ggplot code and (2) a simple comment to describe the distribution of age for each
borough
.
- Provide both (1) ggplot code and (2) a simple comment to describe the distribution of age for each
Answer: