not_any_na {petersenlab}R Documentation

Not Any NA.

Description

Check if all rows for a column are NA.

Usage

not_any_na(x)

Arguments

x

column vector

Details

[INSERT].

Value

TRUE or FALSE, indicating whether the whole column does not have any missing values (NA).

See Also

Other dataEvaluations: dropColsWithAllNA(), dropRowsWithAllNA(), is.nan.data.frame(), not_all_na()

Examples

# 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)

[Package petersenlab version 1.0.0 Index]