Update R code - Part #3

code is complete for 3 out of 4 test for rankhospital.  the code checker seems incorrect because it checks on attak instead of attack.