Hello,

I’m working on the project https://www.codecademy.com/courses/learn-r/projects/variance-in-weather-r.

I made it to step 5 with no problems, but when I used the code to calculate variance, I get the following message:

`Error in variance(temp): could not find function "variance"`

I double-checked my code with what the hint suggested, and it’s exactly the same: temperature_var <- variance (temp)

I even copied and pasted to make sure there wasn’t some tiny typo, and still the same result.

I had no problems with using the mean earlier. Can anyone figure out what the problem is? Is it a problem with my code, or a bug in Codecademy?

For reference, here is all the code I’ve done so far:

head(london_data)

nrow(london_data)temp <- london_data$TemperatureC

average_temp <- mean(temp)

average_temptemperature_var <- variance(temp)

temperature_var

Thanks