Remove all NA values for a vector

remove_na(x)

Arguments

x

vector

Value

vector with all NA values removed

Examples

remove_na(c(2, NA, 3, NaN))
#> [1] 2 3