Question: # 1 . Look at the murders data set by using library ( dslabs ) data ( murders ) . # 2 . Callculated the

# 1. Look at the murders data set by using library(dslabs) data(murders).# 2. Callculated the murder rate using total / population *100,000# 3. Check if the murder_rate is less than 0.71# 4. Define a function to check the average value of the total. CANNOT use mean().# 5. Write an if-else statement to check if the first value of abb is AK. If so return "YES", if not, reture "NOT AK".# 6. Write a for-loop 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!