Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # The name of the state with the maximum population is found by doing the following
- murders$state[which.max(murders$population)]
- # how to obtain the murder rate
- murder_rate <- murders$total / murders$population * 100000
- # ordering the states by murder rate, in decreasing order
- murders$state[order(murder_rate, decreasing=TRUE)]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement