Learn R Programming

ontoFAST (version 1.0.0)

table2list: 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

Run this code
# NOT RUN {
# converting Sharkey_2011 dataset to list of character states
table2list(Sharkey_2011)
# }

Run the code above in your browser using DataLab