empty_vector_if_na | R Documentation |
NA
.Return an empty numeric if all elements are NA
.
empty_vector_if_na(x)
x |
( |
An empty numeric
if all elements of x
are NA
, otherwise x
.
x <- c(NA, NA, NA)
# Internal function - empty_vector_if_na
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.