anyCellEmpty: Check if any cell of a vector is empty

Usage Arguments Details See Also Examples

View source: R/anyCellEmpty.R

Usage

1
anyCellEmpty(x, flag = c(0, NA, -999))

Arguments

x

table (data.frame/2D-matrix) to be checked

flag

What is meant to be "empty". flag could be a vector but all of it elements must be different of the posible valid values of x.

Details

See stats::complete.cases for data.frames/matrix. incompleteBlocks <- (1:nrow(x))[!complete.cases(x)]

See Also

if in the example x[ complete.cases(x),] x[!complete.cases(x),] and the function EmptyRow.R

Examples

1
2
3
4
xe <- c(3,3,3, 0, -999, NA)
anyCellEmpty(xe, flag = c(0, NA, -999))
xe <- 1:5
anyCellEmpty(xe)

mathphysmx/cleanTable documentation built on May 29, 2019, 2:51 p.m.