Update rankhospital.R

Finalized rankhospital.R