I have a data frame, and I want to extract a single value.
hospital <- c("Clanton", "Shelby", "UAB")
score <- c(1, 2, 3)
d <- data.frame(hospital, score)
d[1,1]
Which returns
Factor w/ 3 levels "Clanton","Shelby",..: 1
How do I return "Clanton" from this data frame?
as.character(d[1,1]).