Hi, how could I type down this in R programme? I know you don't have my dataset, but thats not my problem. My problem is what codes I need to use in order to get it to work. (Let's take a look at the package datasets data airquality, which includes New York's air quality measurements from May-September 1973. You can view a more detailed description of the data with the help(airquality, datasets) command.)
Hi, how could I type down this in R programme? I know you don't have my dataset, but thats not my problem. My problem is what codes I need to use in order to get it to work.
(Let's take a look at the package datasets data airquality, which includes New York's air quality measurements from May-September 1973. You can view a more detailed description of the data with the help(airquality, datasets) command.)
question:
a. Calculate the average values of the temperatures (variable Temp) for each month, and store the results in the vector meantemp. The results must be in the vector in order from May to September. Hint: for example, you can use the aggregate function.
b) Store the lowest temperature of each month in the vector mintemp. The temperatures should be in order from May to September.
Since I dont know your dataset, i will be taking the given example dataset of air quality and solve the question. I hope, with this you will be able to understand the method.
Step by step
Solved in 2 steps