Question: You will now need to create a variable orig _ nyt _ covid$state _ abb so that you can merge your two data frames together.
You will now need to create a variable orignytcovid$stateabb so that you can merge your two data frames together. You are welcome to do different if commands, alternatively you might save some time and your sanity by using the stateabbr function in the usdata library. You'll need to install the usdata library ToolsInstall Packages... You can then include it under your previous library under the knitr::optchunk in your initial code chunk Use help to figure out the syntax for stateabbr
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
