Finish the function definition for interpret

Assignment Help Computer Engineering
Reference no: EM132100175

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

Reference no: EM132100175

Questions Cloud

Why and how do you analyze data on an income statement : Why and how do you analyze data on an income statement . also I am having a hard time figuring out when Im analyzing the income
What is a privately operated insurance system : What is a privately operated insurance system? What is a market based economy?
Create a copy of the total balances by client query : Create a copy of the Total Balances By Client query. Name the query Total Balances By State
What is the annual effective rate of the inventory loan : DVDs inventory storage and evaluation fee will be 1 percent a month on the total value of the inventory. What is the annual effective rate of the inventory loan
Finish the function definition for interpret : Using two for loops call the function interpret on all the elements of linkedin and facebook.
What is the current price of the bond : Even though most corporate bonds in the United States make coupon payments semiannually, bonds issued elsewhere often have annual coupon payments
Solve systems of equations using the gaussian elimination : Solve the following systems of equations using the Gaussian elimination - Agumented matrix method.
Using the built-in matlab function roots : Using hand calculation and three iterations of the bisection method. Check your solution using MATLAB utilizing the built-in fzero function.
How much will you have at the end of this investment period : You decide to max-out your annual investment into your Individual Retirement Account and invest $5,500 at the end of each year for the next 22 years.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd