R/istrue.R

Defines functions isfalse istrue

Documented in isfalse istrue

istrue <- function(x){
	# whether x is true, return FALSE if NA
	x[is.na(x)] <- FALSE
	x
}


isfalse <- function(x){
	# whether x is FALSE, return FALSE if NA
	x[is.na(x)] <- TRUE
	!x
}

Try the CALIBERdatamanage package in your browser

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

CALIBERdatamanage documentation built on Nov. 23, 2021, 3 p.m.