R/hash.mat.R

Defines functions hash.mat

hash.mat <- function(x, col)
{
  col <- bigmemory:::cleanupcols(col, ncol(x), colnames(x))
  if (colmin(x, col)<1)
    stop("Error: minimum value in specified column should be 1 or more.")
  return(matrix(.Call('MatrixHashRanges', x@address, as.double(col)),
                      ncol=2, byrow=TRUE))
}

Try the biganalytics package in your browser

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

biganalytics documentation built on May 2, 2019, 4:45 p.m.