R Programming Solution on Effect of Pollution