R/alpha.R

Defines functions alpha

Documented in alpha

alpha <-
function(data, tau) {
        m <- length(tau)
        nc <- ncol(data)/m
        if (nc < 1) {
            stop("Incorrect input matrix")
        }
        
        data[data != 0] <- 1
        alphaMatrixT <- t(as.matrix(data))
        xsplit <- rownames(alphaMatrixT) #split condition
        alphaMatrixTList <- split.data.frame(alphaMatrixT, xsplit)
        
        return(alphaMatrixTList = alphaMatrixTList)
    }

Try the sccr package in your browser

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

sccr documentation built on Dec. 15, 2020, 5:11 p.m.