not_any_na: Not Any NA.

View source: R/notAnyRowsNA.R

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

petersenlab documentation built on April 4, 2025, 12:22 a.m.