tomic_to_matrix | R Documentation |
Convert a T*Omic object to a feature x sample matrix matching the feature and sample ordering of a Triple Omic object.
tomic_to_matrix(tomic, value_var = NULL, transpose = FALSE)
tomic |
Either a |
value_var |
measurement variable to use for the matrix |
transpose |
if TRUE then samples will be stored as rows. If FALSE (default) then samples will be columns. |
Comparing the matrix to feature or sample variable vectors should work because the orders are matched. But, if features or samples are reordered after creating the matrix then the matrix's dimensions will no longer be aligned to feature and samples.
a matrix with features as rows and samples as columns (if transpose FALSE) or features as columns and samples as rows (if transpose is TRUE).
tomic_to_matrix(brauer_2008_triple)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.