data i have
id <- c(1,1,1,2,2,3,3,3,4) a <- c(3,6,7,9,3,1,4,6,4) b <- c(1,NA,5,NA,NA,1,2,NA,NA) df <- data.frame(id,a,b)
data i want
id <- c(1,1,1,3,3,3) a <- c(3,6,7,1,4,6) b<- c(1,NA,5,1,2,NA) df2 <- data.frame(id,a,b)
i just want to delete the ID'S whose b column is full of NA's
Please help me to do this.