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 orignytcovid$state is a string of the states name eg "Nebraska" whereas pop$state is the abbreviation egNE In the same code chunk, rename pop$state such that it is pop$stateabb. 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::optschunk in your initial code chunk.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
