R/check4NullModels.R

Defines functions check4NullModels

check4NullModels <- function(lp){
	allNull <- function(x) all(sapply(x, is.null))
	whichNull <- which(sapply(lp, allNull))
	if(length(whichNull)>0){
		lp <- lp[-whichNull]
		warning("Since ", length(whichNull), " of the models contain no variables, ",
			"they are removed.", call.=FALSE)
	}
	lp
}

Try the logicFS package in your browser

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

logicFS documentation built on Nov. 8, 2020, 5:23 p.m.