R-Programming - Assignment 1 - Part 3

April 17, 2015

Report Abuse
This is assignment 1 part 3 for "Introduction to R Programming" course
This experiment implements a function that takes a directory of data files and a threshold for complete cases and calculates the correlation between sulfate and nitrate for monitor locations where the number of completely observed cases (on all variables) is greater than the threshold. The function returns a vector of correlations for the monitors that meet the threshold requirement. If no monitors meet the threshold requirement, then the function returns a numeric vector of length 0. This is part of [Introduction to R programming course](https://www.coursera.org/course/rprog) The experiment graph for this assignment is shown below. For this experiment, we uploaded dataset as zip file, created sample test input as part of enter module data, and finally wrote the function as a script in **Execute-R** module. ![](http://neerajkh.blob.core.windows.net/images/ass1part3_1.PNG) The following figure shows the correlation between sulfur and nitrate pollutants for various sensors who have complete cases exceeding threshold. ![](http://neerajkh.blob.core.windows.net/images/ass1part3_2.PNG) ![](http://neerajkh.blob.core.windows.net/images/ass1part3_3.PNG) Created by a Microsoft Employee