remove_na(c(4, 1, 2, NA, 4, NA, 3, 2))
# removes based on levels
remove_na(fact(c("b", NA, "a", "c")))
# removes based on values
x <- as_ordered(c("b", "d", "a", "c"))
x[2:3] <- NA
str(remove_na(x))
Run the code above in your browser using DataLab