table2list: Converts a table to list

Description Usage Arguments Value Examples

View source: R/Viz_manipul_main.R

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

1
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

1
2
# converting Sharkey_2011 dataset to list of character states
table2list(Sharkey_2011)

ontoFAST documentation built on April 29, 2021, 9:06 a.m.