Question: You would like to merge the two data frames by the variable state, but you have a problem. Your merge variable doesn't match up .

You would like to merge the two data frames by the variable state, but you have a problem. Your merge variable doesn't match up. orig_nyt_covid$state is a string of the states name (e.g., "Nebraska"), whereas pop$state is the abbreviation (e.g."NE"). In the same code chunk, rename pop$state such that it is pop$state_abb. Note: you will need a command in a package for this rename. Thus, you will need to to use the library() command for this rename. Include this library command under the knitr::opts_chunk in your initial code chunk.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!