Question: Use the function c to create a vector with the average temperatures in January for the cities A, B, C, D, E, and F, which

Use the function c to create a vector with the average temperatures in January for the cities A, B, C, D, E, and F, which are 35, 88, 42, 84, 81, and 30 degrees Fahrenheit, respectively. Call the object temp. Now create a vector with the city names and call the object city.
(a) Use the function names to associate the city with its own temperature. Then print the object temp.
(b) Use the [ operator to access the temperature of the cities B and D.
(c) Use an R command to identify the city with the minimum temperature.
(d) What is the average January temperature of these cities?
(e) Use R to compute the average temperature in degrees Celsius.

Step by Step Solution

3.44 Rating (151 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Create a ve... View full answer

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 Statistics Questions!