Question: # 1 . Look at the murders data set by using library ( dslabs ) data ( murders ) . # 2 . Callculated the
# Look at the murders data set by using librarydslabs datamurders# Callculated the murder rate using total population # Check if the murderrate is less than # Define a function to check the average value of the total. CANNOT use mean# Write an ifelse statement to check if the first value of abb is AK If so return "YES", if not, reture "NOT AK# Write a forloop statement to display all abb value. Tips: check the length of abb at first and then use the length to define the i in for loop.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
