table2list {ontoFAST} | R Documentation |
Converts a table to list
Description
Takes a table where each row consists of character ID + an ontology annotation and returns a list. Each character is assigned its own ID CHAR:XXXX
Usage
table2list(table, id_col = c(1), descendants_cols = c(2:ncol(table)))
Arguments
table |
A character table with annotations. |
id_col |
A column ID corresponding to character |
descendants_cols |
IDs of columns corresponding to character annotations |
Value
The list.
Examples
# converting Sharkey_2011 dataset to list of character states
table2list(Sharkey_2011)
[Package ontoFAST version 1.0.0 Index]