NA
R/drop_na.R
drop_na.Rd
drop_na() remove all NA values from an atomic object.
drop_na()
drop_na(x)
An atomic object of any type.
atomic
An object of the same type as x with all NA values removed.
x
Other vector functions.: count_na(), inbetween_integers()
count_na()
inbetween_integers()
drop_na(c(1, NA, 2, 3, NA, 4)) #> [1] 1 2 3 4 #> [1] 1 2 3 4 # Expected drop_na(c("a", NA, "b", "c")) #> [1] "a" "b" "c" #> [1] "a" "b" "c" # Expected