not_any_na | R Documentation |
Check if all rows for a column are NA
.
not_any_na(x)
x |
column vector |
[INSERT].
TRUE
or FALSE
, indicating whether the whole column does
not have any missing values (NA
).
Other dataEvaluations:
dropColsWithAllNA()
,
dropRowsWithAllNA()
,
is.nan.data.frame()
,
not_all_na()
# Prepare Data
df <- data.frame(item1 = rnorm(1000), item2 = rnorm(1000), item3 = rnorm(1000))
df[sample(1:nrow(df), size = 100), "item2"] <- NA
df[,"item3"] <- NA
# Check if Not Any NA
not_any_na(df$item1)
not_any_na(df$item2)
not_any_na(df$item3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.