Description Usage Arguments Value Examples
Transforms a matrix, data frame or data table to an ordered data table with the key as the first column. The key column can be passed, selected by its column name or extracted from row names.
1 2 |
x |
A matrix, data frame or data table. |
key_col |
Character vector of one or more column names which is passed
to |
key_data |
A vector of length |
sort |
Wheter to sort by |
df |
Return a data frame instead of a data table. Defaults to
|
A data table (or data frame) based on x
and ordered by key_col
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | data(geneData, geneCovariate, package='Biobase')
gData <- head(geneData, n=5)
gData
class(gData)
gData <- format_table(gData, 'Probeset')
gData
class(gData)
key(gData)
gData <- format_table(gData, key_data=row.names(geneData)[6:10], sort=FALSE)
gData
key(gData)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.