Question: Within the R environment, complete the following mathematical computations. Compute the sum of 100, 200, 300, and 400. Compute the average of all even numbers

Within the R environment, complete the following mathematical computations.

  1. Compute the sum of 100, 200, 300, and 400.
  2. Compute the average of all even numbers from 2-100.
  3. Obtain the average for the square root of all multiples for even numbers from 2-100. Compute the square root of all even numbers from 2-100, and then average them.
  4. Create a series of four vector objects called WeeklyTemps*. Note that the * will be a 1, 2, 3, or 4. Store the temperatures for the past 4 weeks (i.e., 7 days, Monday-Sunday) in each object. You can reference weather resources for your area, or you can create the temperature data on your own.
  5. Use the write() command to export the four vector objects into a file called MonthlyTemperatures.csv.

Create a MonthlyTemperatures.csv file and a plain text file (.txt) of all executed commands for the assignment.

In a Word document, include screenshots that show the results of executing each command.

Submit the .csv, .txt file, and Word document to your instructor.

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!