is_na | R Documentation |
Returns TRUE
or FALSE
depending on whether the value in x
are missing.
Compared to is.na()
, it follows the tidyverse size principles, so that
length(is_na(df))
equals nrow(df)
.
is_na(x)
x |
A vector |
A logical vector with same size as x.
is_na(c(NA, 1, NA)) # A row of a data frame is missing if all its values are missing. df <- data.frame(x = c(NA, 2, 3), y = c(NA, NA, 3)) is_na(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.