Takes table where each row consists of charcter number and ontology annotations 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)))

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 data set to list of characater states
list_data<-table2list(Sharkey_2011)
#> Error in nrow(table): object 'Sharkey_2011' not found