```{r}
#LOAD PACKAGES
library(tidyverse)
```

This assignment concerns the `gapminder` dataset which is available in the `gapminder` package. 

First, Download gapminder from the menu at the right. You only need to do this once. Once it has been download, you need to call it using the code below. 

```{r}
# LOAD DATA SET
library(gapminder)
data(gapminder) 
```

If you want to view this data, click on the word `gapminder` in your environment and it should open up

:::callout-tip
There are often many different ways to get to the right answer on this assignment! I don't care *how* you get the answer. I care that you are clearly explaining how you got your answer -- either by showing any code you used or explaining in words how you got to the answer you did. 
:::

:::callout-tip
In the problems below, I have not given you any blank R chunks. If you wish to use some R code to answer the problem, you can add your own R chunk -- either by typing it directly OR going to Code --> Insert Chunk in the top menu. 
:::

# 1.
How many rows and columns does this dataset have? 

# 2. 
What are the names of the 6 columns? 

# 3. 
Create a dataset called `gapminder2007` which only contains information for each of the countries in 2007. 

# 4. 
If you instead try to choose the subset with year equal to 2005, something will go wrong. Try it and
explain what happens and why.

# 5. 
Print out the row of data corresponding to the US in 2007. 

# 6. 
In the above problem, you would have put quotes around `United States` but not around `2007`. Explain why. 

# 7. 
Which country had a higher life expectancy in 1977: Ireland or Brazil? 


# 8. 
What is the lowest life expectancy in the gapminder dataset? Which country and year does it correspond to? 


# 9. 
For the year 2007, print out a list of the top 10 countries with the highest life expectancy. They should be ordered from highest life expectancy to 10th highest life expectancy. You should only display the countries name and life expectancy (and no other data). 


