I have data of about hospital i.e. its patient details,location. Now I have to exclude hospital from table which are lies on State
store in Vector (which may be vary according to the condition) and store remaining hospital on another table. How can I achieve this in R. As I'm new bin please suggest me if any function there to do this task.
>test <- read.csv("outcome-of-care-measures.csv", colClasses = "character")
>test[, 11] <- as.numeric(outcome[, 11])
>test2 <- table(outcome$State)
>exc_state <- names(test2[test2 < 20])
Now remove row with all state name store on exc_State from table and store on another table named table2.