logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Sina AntiqueStatistics
(5/5)

700 Answers

Hire Me
expert
Rech ElleeNursing
(5/5)

645 Answers

Hire Me
expert
Manal ChiguerMarketing
(5/5)

598 Answers

Hire Me
expert
Thaissa LannesLaw
(5/5)

891 Answers

Hire Me
R Programming

dataset listing peak air temperatures in degrees Fahrenheit, recorded on 20 consecutive days:

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

The following is a dataset listing peak air temperatures in degrees Fahrenheit, recorded on 20 consecutive days:

87,  90,  89,  87,  85,  89,  90,  85,  91,  87,  89,  83,  87,  91,  84,  89,  93,  91,  87,  88

Write a clear, thoroughly commented R program that does the following:

1. Create a reasonably named vector of those temperatures

2. Convert those temperatures to degrees Centigrade (you may need to look up the formula for this conversion), and store those converted temperatures in a new, reasonably-named vector. IMPORTANT: Don’t “hard-code” the values; that is, don’t just type the converted values into a new vector one at a time; have R make the vector for you.

3a. Create a reasonably named variable containing the mean temperature in degrees Centigrade for the dataset. Don’t hard-code this value; that is, don’t just compute the mean and then type in the number; have R compute the mean and assign that value to the variable name directly (in a single step).

3b. Create a reasonably named variable containing the standard deviation of the temperature in degrees Centigrade for the dataset. Don’t hard-code.

4a. Create a reasonably named vector containing the temperatures in degrees Centigrade for the first 10 days only. Don’t hard-code; that is, don’t just type 10 values into a new vector; have R make the vector for you. HINT: Use indexing!

4b. Create a reasonably named vector containing the temperatures in degrees Centigrade for the last 10 days only. Don’t hard-code.

5a. Create a reasonably named variable containing the mean temperature in degrees Centigrade in the first 10 days only. Don’t hard-code.

5b. Create a reasonably named variable containing the mean temperature in degrees Centigrade in the last 10 days only. Don’t hard-code.

6. Create a variable called didTempGoUp, which is a TRUE or FALSE value indicating whether the mean temperature was higher in the last 10 days than in the first 10 days. Don’t hard-code; have R figure out whether it’s true or false and assign that value to didTempGoUp (in a single step).

7. Create a reasonably named vector of all the temperatures in the dataset (in degrees Centigrade), ordered from smallest to largest. Don’t hard-code.

8. Create a histogram of all the temperatures (in degrees Centigrade), with yellow-colored bins and an appropriately-labeled x-axis. Give the histogram an appropriate title. TIP: If your title is too long to fit nicely, use \n to insert a line-break within the title; for example:
'Here’s the first line\nHere’s the second line'
(notice that no spaces are needed before or after the \n).

EXTRA CREDIT: Create a reasonably named vector containing the temperatures converted to z-scores. Remember, the z-score is the difference between the given value and the mean, as a number of standard deviations.

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme