R/deviation_hda2.R

Defines functions deviation_hda2

deviation_hda2 <-
function(Dmat, Nc.Dmat, new.cnames="Dis"){
    alpha <- function(Da, Nc) {
    Da2 <- Da-Nc
    return(Da2)}
    mat <- alpha(as.matrix(Dmat[
    rownames(Nc.Dmat), ]), as.matrix(Nc.Dmat));
    mat <- ifelse(as.matrix(Dmat[rownames(Nc.Dmat), ]) == 0, 0, mat)
    colnames(mat) <- new.cnames
    return(mat)
}

Try the TTMap package in your browser

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

TTMap documentation built on Nov. 8, 2020, 7:30 p.m.