Hi Guys,

I made a list in R of length 5 (each element represents a different city): inside each element there are 31 temperatures.

I called that list "Enero" (January in spanish).

In order to calculate the mean for each element of my list (the mean for January Temperature for each city) I used the sentence:

mediaenero= lapply(enero, mean) and it worked!

Now, I need to calculate the difference between each temperature from each city and the mean (for each city).

How could I do that?

The only thing I have is:

- A list called "Enero" with 5 elements (each one contains 31 temperatures)
- A list called "mediaenero" with 5 elements (the mean of all this 31 temperatures).