What is an r expression that outputs the mean of ages

Assignment Help Computer Engineering
Reference no: EM133360053

Question: This assignment requires you to enter R expressions. Be sure to read each question carefully. Note that if the question specifies a variable name, you must use that variable name exactly. So if the question specifies a variable name of "sales" your answer will be (appropriately) marked incorrect if you enter "Sales" or "SALES" or "sale". This is not a limitation of the Bb answer checker, but rather is meant to get you used to R, which distinguishes between upper and lower case letters, and generally will expect you to be accurate and consistent.

1. What is an R expression that creates a variable called sales and intializes it to 750.

2. What is an R expression that tests if the variable sales is greater than 100. (Here and equivalently for the other questions, your answer should work for any variable named sales. That is, for example, for this question you should not test to see if 750 is greater than 100.)

3. What is an R expression that tests if the variable sales is greater than 100 or less than or equal to 500.

4. What is an R expression that tests if the variable sales is not equal to 100.

5. What is an R expression that outputs the square root of sales. (Your expression should work for any numeric variable named sales.

6. What is an R expression that creates a character variable called fname and initializes it to Elvis.

7. What is an R expression that outputs the number of characters in fname. (Your expression should work for any value of fname.)

8. What is an R expression that creates a vector favFruits containing your five favorite fruits, where your five favorite fruits are apples, bananas, oranges, grapes and kiwis.

9. What is an R expression that creates a vector called ages, initialized with the values 25, 32, 28, 12, 84, 57.

10. What is an R expression that creates a vector called agesPlus1 that contains the values in ages each incremented by one. Your expression of course should work for any vector called ages, not only the one you just created.

11. What is an R expression that outputs the mean of ages. Your expression should work for any numeric vector named ages, including those that have missing values.

12. What is an R expression that outputs the median of ages. Your expression should work for any numeric vector named ages, including those that have missing values.

13. What is an R expression that outputs the median of ages. Your expression should work for any numeric vector named ages, including those that have missing values.

14. What is an R expression that outputs the minimum value in ages. Your expression should work for any numeric vector named ages, including those that have missing values.

15. What is an R expression that outputs the maximum value in ages. Your expression should work for any numeric vector named ages, including those that have missing values.

16. What is an R expression that outputs only the second element of ages.

17. What is an R expression that outputs only the second, fifth and sixth elements of ages.

Reference no: EM133360053

Questions Cloud

Explain in detailed how qualitative and quantitative : Explain in detailed how qualitative, quantitative and descriptive research is done if we plan to put up SM Supermall Philippines in Sault Ste.
Describe the information procedures on how xero sets up : describe the information procedures on how Xero sets up and operates this in the system.
What percentage of total assets does inventories : What percentage of total assets does inventories represent for each of the last three years? (Show your calculaltions)
External environment to properly forecast labor demand : HR managers need to scan the external environment to properly forecast labor demand.
What is an r expression that outputs the mean of ages : What is an R expression that tests if the variable sales is greater than 100. (Here and equivalently for the other questions, your answer should work for any
What is the role of the accounting function : What is the role of the accounting function in an organization? and Define the 3 roles played by accountants with respect to the information system.
Determine the specific eight-digit codification citation : Determine the specific eight-digit Codification citation that describes the guidelines for determining when the lessee should reassess the term of the lease
How predictive analytics can be used in a business setting : how predictive analytics can be used in a business setting. What impact can it have on business goals and objectives? What are the specific uses of descriptive
Prepare journal entries for the foregoing intercompany : Prepare journal entries for the foregoing intercompany transactions in the accounting records of (a) the ABC company (home office) and (b) the XYZ Branch.

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