Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.