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

View source: R/naOmitMulti.r

naOmitMultiR Documentation

Remove NAs from one or more equal-length vectors

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 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

na.omit

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)

omnibus documentation built on Sept. 17, 2024, 5:09 p.m.