Categories: Homework on time

American University R Studio Programing Data Science Task 1. Use relative paths to load these data frames into R. “`{r, eval=TRUE} “` 2. These data ar

American University R Studio Programing Data Science Task 1. Use relative paths to load these data frames into R.

“`{r, eval=TRUE}

Don't use plagiarized sources. Get Your Custom Essay on
American University R Studio Programing Data Science Task 1. Use relative paths to load these data frames into R. “`{r, eval=TRUE} “` 2. These data ar
Just from $13/Page
Order Essay

“`

2. These data are messy. The observational units in `fert`, `life`, and `pop` are locations in space-time (e.g. Aruba in 2017). Recall that tidy data should have one observational unit per row.

– Make these data tidy now.

– Make sure the new year variable is a numeric.

“`{r, eval = TRUE}

“`

3. Combine these data frames so the fertility rate, population, life expectancy, and the region for each country in each year are in a single data frame.

“`{r, eval = TRUE}

“`

4. Make a scatterplot of fertility rate vs life expectancy, color-coding by region and annotating size by the population.

+ Include only the years 1960, 1970, 1980, 1990, 2000, and 2010. Facet by these years.

+ Interpret the plot in one sentence.

+ Your final plot should look like this:

“`{r, eval=TRUE}

“`

5. Calculate the total population for each region for each year. Exclude 2018.

+ Make a line plot of year versus log of total population, color-coding by region.

+ Interpret the plot in one sentence.

+ Your final plot should look like this:

“`{r, eval = TRUE}

“`

6. Make a bar plot of population vs region for the year 2017.

+ Order the bars on the $y$-axis in **decreasing** order of population.

+ Your final plot should look like this:

“`{r, eval = TRUE}

“`

superadmin

Share
Published by
superadmin

Recent Posts

Consider the following information, and answer the question below. China and England are internation

Consider the following information, and answer the question below. China and England are international trade…

4 years ago

The CPA is involved in many aspects of accounting and business. Let’s discuss some other tasks, othe

The CPA is involved in many aspects of accounting and business. Let's discuss some other…

4 years ago

For your initial post, share your earliest memory of a laser. Compare and contrast your first percep

For your initial post, share your earliest memory of a laser. Compare and contrast your…

4 years ago

2. The Ajax Co. just decided to save $1,500 a month for the next five years as a safety net for rece

2. The Ajax Co. just decided to save $1,500 a month for the next five…

4 years ago

How to make an insertion sort to sort an array of c strings using the following algorithm: * beg, *

How to make an insertion sort to sort an array of c strings using the…

4 years ago

Assume the following Keynesian income-expenditure two-sector model:

Assume the following Keynesian income-expenditure two-sector model:                                                AD = Cp + Ip                                                Cp = Co…

4 years ago