Skip to contents

This function removes elements in one or more equal-length vectors in which there is one NA at that position. For example, if there are three vectors A, B, and C, and A has an NA in the first position and C has an NA in the third position, then A, B, and C will each have the elements at positions 1 and 3 removed.

Usage

naOmitMulti(...)

Arguments

...

Numeric or character vectors.

Value

List of objects of class ....

See also

Examples

a <- c(NA, 'b', 'c', 'd', 'e', NA)
b <- c(1, 2, 3, NA, 5, NA)
c <- c(6, 7, 8, 9, 10, NA)
naOmitMulti(a, b, c)
#> [[1]]
#> [1] "b" "c" "e"
#> 
#> [[2]]
#> [1] 2 3 5
#> 
#> [[3]]
#> [1]  7  8 10
#>