R/user.cont.R

Defines functions user.cont

Documented in user.cont

user.cont <- function(cont) {
  user.cont.emmc <- function(levs,...) {
    M <- as.data.frame(t(cont))
    for (i in 1:ncol(M)) {
	colnames(M)[i] <- paste(paste(rownames(M)[M[,i]>0],collapse="-"),
	  paste(rownames(M)[M[,i]<0],collapse="-"),sep=" vs ")
    }
    attr(M,"desc") <- "user defined contrasts"
    attr(M,"adjust") <- "fdr"
    M
  }
  return(user.cont.emmc)
}

Try the RVAideMemoire package in your browser

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

RVAideMemoire documentation built on Nov. 6, 2023, 5:07 p.m.