R/is.binary.R

Defines functions is.binary

Documented in is.binary

is.binary <- function(x){
  x <- stats::na.omit(x)
  if (is.numeric(x)){
    all(x %in% c(0, 1))
  } else {FALSE}
}

Try the WinRatio package in your browser

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

WinRatio documentation built on Nov. 23, 2020, 9:06 a.m.