I have a list of patients and the hospitals where they are treated. However one of the hospitals is listed as being in another state so I wanna change it
I'm trying to do it like this:
db <- ifelse(db$hospital=="NYC Hospital", db$State=="New York"),)
However it says I'm missing the NO
argument. How can I get around this?