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