| longdf2gctMatrix | R Documentation |
Convert a long data.frame into a GctMatrix
longdf2gctMatrix(
longdf,
row.col = 1L,
desc.col = 2,
column.col = 3,
value.col = 4,
missingValue = NULL
)
longdf |
A data.frame object |
row.col |
Integer or character string, index or name of the column in which row names are stored |
desc.col |
Integer or character string,, index or name of the column in which feature descriptions are stored |
column.col |
Integer or character string, index or name of the column in which sample names are stored |
value.col |
Integer or character string, index or name of the column in which values are stored |
missingValue |
Value used for missing values. If |
A GctMatrix object
idir <- system.file("extdata", package="ribiosIO")
sample.gct.file <- file.path(idir, "test.gct")
test.mat <- read_gct_matrix(sample.gct.file, keep.desc=TRUE)
test.long <- gctMatrix2longdf(test.mat)
test.rmat <- longdf2gctMatrix(test.long)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.