naOmitMulti | R Documentation |
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.
naOmitMulti(...)
... |
Numeric or character vectors. |
List of objects of class ...
.
na.omit
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.