R/ALLNAS.R

ALLNAS <-
function(x){
	if(is.data.frame(x)){allnas=rowSums(is.na(x))==ncol(x)}
	if(is.vector(x)){allnas=sum(is.na(x))==length(x)}
as.vector(allnas)
}

Try the MoLE package in your browser

Any scripts or data that you put into this service are public.

MoLE documentation built on May 2, 2019, 3:02 p.m.