toMatrix {oncomix} | R Documentation |
This internal function converts SummarizedExperiment objects and dataframes (both S3 and S4) to matrices of expression values. Used within oncomix functions to convert all matrix-like objects to the matrix class.
toMatrix(m)
m |
Can be a matrix, a data.frame, a DataFrame, or SummarizedExperiment object. |
A matrix of expression values
m <- as.data.frame(matrix(data=rgamma(n=150, shape=2, rate=2), nrow=10, ncol=15)) m <- toMatrix(m)