LongToMat <- function(dat.fit.relamp.sub, value.var = "relamp"){
M <- dcast(dat.fit.relamp.sub, gene ~ tissue, value.var = value.var)
rownames(M) <- M$gene
M$gene <- NULL
return(M)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.