Progamming in r computer language

Assignment Help Basic Computer Science
Reference no: EM131827142

Progamming in R Computer Language

Please put the R code in a word document. THAT is what I need. I will then try to run the code myself into R. It needs to run properly. Please add # comments where appropriate. The instructions are attached but I have repeated them here:

For each of the following problem parts, your submitted HW solution should contain R code lines. Don't include the lengthy output of R. You will not get credit for the answers without the associated code lines, together with some intermediate results as appropriate to indicate that your code lines did give the correct desired answer.

Problem 1: Access the data-set "nepali" within the R package "faraway", which contains information about children and their mothers. See the web-page brought up by the command "help(nepali)" for details on the data-frame "nepali" you will see by loading the "faraway" R package onto your computer.Answer the following questions about the dataset, giving R code to show how you obtained the answers.

(a) How many unique children (i.e., ID's) are represented in the dataset ?

(b) Some of the observations on children are missing the height ("ht") or weight ("wt")

data. Are there any observations missing one but not both of these data fields ?

(c) Use the appropriate function to delete the missing values from the data set "nepali".

(d) From the new data set "nepali"( after deleting the missing value), use the columns "wt"and "sex" in new data set "nepali" to create boxplot (indicate appropriate xlab,ylab and main).

(e) From the new data set "nepali"( after deleting the missing value), use the columns "wt"and "ht" in new data set "nepali" to create scatterplot (indicate appropriate xlab,ylab,xlim, ylim and main).

Problem 2: Create the following vectors in R.

x = (5, 10, 15, 20, ..., 175)

y = (88, 86, 85, ..., 54)

Use vector arithmetic to multiply these vectors and call the result z. Select subsets of z to identify the following.

(a) What are the 13th, 20th, and 25th elements of z?

(b) What are all of the elements of z which are less than 2500?

(c) How many elements of z are greater than 7000?

Problem 3: Using z from problem 2, use R to compute the following statistics of z:

(a) sum

(b) mean

(c) standard deviation

Reference no: EM131827142

Questions Cloud

Analyse - use of robotics has a positive impact on society : Write a research essay on the above topic using the persuasive analytical model you have been taught - Critically analyse and evaluate this statement
Why is removing presentation-oriented markup : 1. Why is removing presentation-oriented markup from one's HTML documents considered to be a best practice?
What does shepherd say about mergers : What does Shepherd say about mergers? What is the connection between the sales effort and the savings rate? Describe the manipulative practice of branding.
Evaluate benefits and challenges of using historical cost : Evaluate the benefits and challenges of using historical cost and fair value accounting for PPE and intangibles, by reviewing accounting literature.
Progamming in r computer language : Please put the R code in a word document. THAT is what I need. I will then try to run the code myself into R.
How did your firm conduct the impairment testing : In the excel file "Find Your Company" you will find the listed company you have been given for this course. Complete this assignment for the company.
Why customer is related to order : Why customer is related to order, etc. The explanation should explain why the specific relationships were created. Also, How do you explain cardinality?
What was the biggest challenge in putting team guidelines : What was the biggest challenge in putting the team guidelines together? Time difference with team members.
Concept of creating a hash to validate integrity : Analyze the concept of creating a hash to validate integrity of information. Analyze the concept of creating a digital signature to authenticate the source

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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