omit_na | R Documentation |
Omit NA values
omit_na(x)
x |
A vector of values |
x
which NA
values removes and two attributes of integers
: na
which is the position of NA
values, and valid
for the position of
non-NA
values; empty positions reported as integer(0)
# Like stats::na.omit but always provides
x <- letters[1:5]
omit_na(x)
x[c(3, 5)] <- NA
omit_na(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.