R Programming Course: Assignment 3

Read this better directly on GITHUB

Markdown cheartsheet (format rules for generiting .md files)
This is the second post of the series ” R Programming”. Here it is possible to find the summary of the tasks that I performed when I took this course at Coursera.

Assignment description: access description

Assignment 3 solution

Analyze the data from different hospitals and find the best hospital
section 1: example how to read data and print histogram

 

Histogram:

alt text

section 2: find best hospital (less outcome parameter: i.e: deads by “hard attacks”, “pneumonia”..)

 

section 3: get the hospital in position “num” (ranking) for the selected state and de selected outcome (parameter)

 

section 4: get the hospital in position (num) for every state