Question: Please this should be solved by R studio # Fun with FUNctions # Part 4. Finish the function definition for interpret(), that interprets the number

Please this should be solved by R studio

# Fun with FUNctions

# Part 4. Finish the function definition for interpret(), that interprets the number of profile views on a single day:

# The function takes one argument, num_views. If num_views is greater than 15, the function prints out "You're popular!"

# to the console and returns num_views. Else, the function prints out "Try to be more visible!" and returns 0. interpret <- function(num_views) { if (num_views > 15) { } else { } }

# Part 5. Call the interpret() function twice: on the first value of the linkedin vector and on the second element of # the facebook vector.

The linkedin and facebook vectors have already been created for you linkedin <- c(16, 9, 13, 5, 2, 17, 14) facebook <- c(17, 7, 5, 16, 8, 13, 14)

# Call the interpret function twice

# Part 6. Using two for loops call the function interpret on all the elements of linkedin and facebook

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!