naOmitMulti: Remove NAs from one or more equal-length vectors

Description Usage Arguments Value See Also Examples

View source: R/naOmitMulti.r

Description

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 vecors A, B, and C, and A has an NA in the first position and C has an NA in the thord position, then A, B, and C will each have the elements at positions 1 and 3 removed.

Usage

1

Arguments

...

Vectors (numeric or character).

Value

List of objects of class ....

See Also

[stats::na.omit()]

Examples

1
2
3
4
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)

adamlilith/omnibus documentation built on Nov. 21, 2018, 11:01 a.m.