
rows_with_void: Detect rows containing void values (NA / NULL / "")
Source:R/rows_with_void.R
rows_with_void.Rd
Scan a data.frame or tibble and identify rows that contain any "void" values.
Void values include NA
, NULL
, and empty strings ""
(toggle via flags).
Value
A logical vector of length nrow(data)
indicating whether each row
contains at least one void value.
Examples
df <- data.frame(id = 1:3, name = c("A", "", "C"), score = c(10, NA, 20))
rows_with_void(df)
#> [1] FALSE TRUE FALSE
df[rows_with_void(df), ]
#> id name score
#> 2 2 NA