remove NA from a vector and return it

rm_na(vec)

Arguments

vec

A vector

Value

A vector without NA

Examples

rm_na(c(1,NA, 2, NA))
#> [1] 1 2