R/euc.R

setGeneric("euc", function(x, ...) standardGeneric("euc"))

setMethod("euc", signature=signature("matrix"), 
    function(x, diag = FALSE, upper = FALSE)
{
   dist(x, method="euclidean", diag = diag, upper = upper)
} )

setMethod("euc", signature=signature("eSet"),
    function(x, diag = FALSE, upper = FALSE,sample =TRUE) {
    if(sample) ep <- t(exprs(x)) else ep <- exprs(X)
    euc(ep, diag, upper)
})

Try the bioDist package in your browser

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

bioDist documentation built on Nov. 8, 2020, 5:14 p.m.