View source: R/Viz_manipul_main.R
table2list | R Documentation |
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
table2list(table, id_col = c(1), descendants_cols = c(2:ncol(table)))
table |
A character table with annotations. |
id_col |
A column ID corresponding to character |
descendants_cols |
IDs of columns corresponding to character annotations |
The list.
# converting Sharkey_2011 dataset to list of character states table2list(Sharkey_2011)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.