pollutantmean.R has been modified with a more efficient code. There is also a new funcion called corr.R , which makes a correlation between nitrate and sulfate values for each monitor. It will use the monitors that have more than a given number of complete observations.