Created
July 22, 2016 18:20
-
-
Save ckholmes5/0d868f74b4387758b8d76e6a5c3fd3a5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
statemerge = merge(statecrime, stateexpense, by=c('Year','State')) | |
statemerge = mutate(statemerge, Educ_per_person = Total_Educ_Total_Exp/Population.x, | |
Police_per_person = Police_Prot_Total_Exp/Population.x, | |
Violent_rate = Violent.crime.total/Population.x, | |
Property_rate = Property.crime.total/Population.x) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment