R/T.mean.R

T.mean <-
function(geneZ){

    Zvec = geneZ[,2]
    gname0 = as.vector(geneZ[,1])
    names(Zvec) = gname0

    Tvec <- tapply(Zvec, gname0, mean)
    mvec <- tapply(gname0, gname0, length)
    Txx = cbind(Tvec,mvec)
    colnames(Txx) = c('T','m')
    rownames(Txx) = names(mvec)
    return(Txx)
    }

Try the sgRSEA package in your browser

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

sgRSEA documentation built on May 2, 2019, 2:47 p.m.