R/checkBinary.R

Defines functions check.binary

## wrapper for C function which checks columns of X to see
## which are binary

check.binary <- function(X) {

  if(!is.matrix(X)) stop("X must be a matrix")
  if(storage.mode(X) != "double")
    stop("The storage mode of X must be double")

  return(.Call(checkColsBinary, X))
}

Try the widenet package in your browser

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

widenet documentation built on May 2, 2019, 2:10 p.m.