Warning! It seems that you are using Dodona within another webpage, so not everything may work properly. Let your teacher know so that he can solve the problem by adjusting a setting in the learning environment. In the meantime, you can click this link to open Dodona in a new window.
Warning! The page was not fully loaded, probably because of a network issue. It could be that not all functionalities work as expected. Please try reloading the page.
Matrix indexing
Sign in to test your solution.
Hospitals <- matrix(c(25, 28, 86, 32, 0,
102, 26, 24, 12, NA,
68, 103, 26, 2, 9,
85, 64, 35, 72, 11,
41, 48, 86, 45, 1),
ncol = 5,
dimnames = list(c("White",
"Black",
"Hispanic",
"Asian",
"Other"),
c("St.James",
"UH Bubal",
"Zofi Hospital",
"Max Institute",
"KPH")
)
)
Hospitals_Updated <- Hospitals