| naOmitMulti {omnibus} | R 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
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)
[Package omnibus version 1.2.13 Index]