Use the function c to create a vector with the average temperatures in January for the cities
Fantastic news! We've Found the answer you've been seeking!
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 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.
Related Book For
Physics
ISBN: 978-0077339685
2nd edition
Authors: Alan Giambattista, Betty Richardson, Robert Richardson
Posted Date: