R/bool.R

bool <-
function(x=T, na=NA) {
    b <- (x!=0)
    ifelse(is.na(b), na, b)
}

Try the ilc package in your browser

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

ilc documentation built on May 2, 2019, 5:07 a.m.