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 orig_nyt_covid$state_abb so that you can merge your two data frames together. You are welcome to do 50 different "if" commands, alternatively you might save some time (and your sanity) by using the state2abbr() function in the usdata library. You'll need to install the usdata library (Tools-->Install Packages...). You can then include it under your previous library (under the knitr::opt_chunk in your initial code chunk). Use help() to figure out the syntax for state2abbr().

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!