R-Programming - Assignment 3 - Part 2

April 18, 2015

Report Abuse
This is assignment 3 part 2 for "Introduction to R Programming" course
This experiment creates a function called rankhospital that takes three arguments: the 2-character abbreviated name of a state (state), an outcome (outcome), and the ranking of a hospital in that state for that outcome (num). The function reads the outcome-of-care-measures.csv file and returns a character vector with the name of the hospital that has the ranking specified by the num argument. 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/ass3part2_1.PNG) The following figure shows the hospital list that has a specific rank, for a specified outcome and in a given region. ![](http://neerajkh.blob.core.windows.net/images/ass3part2_2.PNG)